Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let users pick from installed debuggers before sending them to the Marketplace #126962

Closed
weinand opened this issue Jun 23, 2021 · 3 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders under-discussion Issue is under discussion for relevance, priority, approach verified Verification succeeded
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Jun 23, 2021

Simulate the scenario:

user has an installed debugger (that wasn't updated to include a "language" contribution) by pressing F5 on a single file and without a launch.json

with these steps:

  • use Mock debug project
  • remove the "languages": ["markdown"], contribution from package.json
  • launch Mock debug with F5
  • in new window remove the .vscode/launch.json
  • open test.md
  • press F5

Observe:
2021-06-23_09-17-06

Previously we would get the "debug environment" Quickpick in this situation (which IMO makes more sense).

I suggest the following:

  • as a fallback use the breakpoints contribution in a debugger's package.json as a strong indication for whether the debugger can handle the file type, and if that doesn't help
  • show a debugger Quickpick to let the user select one of his debugger extensions, and only if there is none let the user search on the Marketplace (IIRC this is more or less the old behavior).
@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues under-discussion Issue is under discussion for relevance, priority, approach labels Jun 23, 2021
@isidorn isidorn added this to the June 2021 milestone Jun 23, 2021
@isidorn
Copy link
Contributor

isidorn commented Jun 25, 2021

I like your idea to use the breakpoints as hint.
So I went with that, in short:

  • if we can set breakpoints in the current file we behave as before (show a debugger Quickpick)
  • If we can not -> we have the new "Marketplace" dialog (in this case I do not want to show the quick pick first to make the flow simple)

Try it out and let me know what you think. Thanks

@isidorn isidorn added the bug Issue identified by VS Code Team member as probable bug label Jun 25, 2021
@connor4312
Copy link
Member

Hmm, I followed Andre's suggested steps:

  1. Installed mock debug
  2. Removed the languages from its package.json
  3. Reloaded, verified I could set breakpoints, F5'd, then got this dialog:

Am I doing something differently?

@connor4312 connor4312 added the verification-steps-needed Steps to verify are needed for verification label Jul 1, 2021
isidorn added a commit that referenced this issue Jul 2, 2021
@isidorn
Copy link
Contributor

isidorn commented Jul 2, 2021

@connor4312 good catch, your steps are great. I made a rookie mistake. Pushed a fix and verified it is good now. Thanks!

@isidorn isidorn removed the verification-steps-needed Steps to verify are needed for verification label Jul 2, 2021
@rzhao271 rzhao271 added the verified Verification succeeded label Jul 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders under-discussion Issue is under discussion for relevance, priority, approach verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@weinand @isidorn @connor4312 @rzhao271 and others