-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
debug: allow a single debug extension to provide multiple configs #100794
Conversation
Previously if a debug extension provided multiple dynamic configurations, we would just use the first debugger -- whatever that was. This change now shows all configurations for which dynamic configs are registered. I also adjusted the picker to automatically select the first item if there's only a single configuration provided. This works well for the debug terminal, but also means that the user doesn't see the name of the selected item, which might not be desirable. Open to pushback. Together these finish the request for a separate top-level contribution for the terminal in #98054 Finally, with that adjustment I made a tweak so that the picker shows up in a `busy` state while extensions are activating. Previously you would select a dynamic configuration title and could have a few seconds of delay before the picker came up, which is probably not desirable.
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts
Outdated
Show resolved
Hide resolved
@connor4312 thanks a lot for this PR. Good work overall! I like the optimisation to not bother the user if there is only one Configuration! As for PRs in general, I am a big fan and keep em coming. Also feel free to split PRs in multiple if they tackle seperate things since that makes it easier for me to review and merge. |
Looks great. Merging in. 🍻 ☀️ |
Previously if a debug extension provided multiple dynamic
configurations, we would just use the first debugger -- whatever that
was. This change now shows all configurations for which dynamic configs
are registered.
I also adjusted the picker to automatically select the first item if
there's only a single configuration provided. This works well for the
debug terminal, but also means that the user doesn't see the name of
the selected item, which might not be desirable. Open to pushback.
Together these finish the request for a separate top-level contribution
for the terminal in #98054
Finally, with that adjustment I made a tweak so that the picker shows
up in a
busy
state while extensions are activating. Previously youwould select a dynamic configuration title and could have a few seconds
of delay before the picker came up, which is probably not desirable.