Skip to content

Document the debugType context #2437

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

Closed
DanTup opened this issue Feb 27, 2019 · 1 comment
Closed

Document the debugType context #2437

DanTup opened this issue Feb 27, 2019 · 1 comment
Labels
extensibility extension author content under /api small
Milestone

Comments

@DanTup
Copy link
Contributor

DanTup commented Feb 27, 2019

microsoft/vscode#45116 (comment)

We strongly recommend to use the when debugType context to avoid adding your actions for all debug types.

I can't find any info on debugType. I presume that it matches the currently selected debug session if there are multiple (and that it changes as you switch between the active sessions) but I think it should be written somewhere.

Also, it feels a bit weird that the place to go and find these contexts when declaring commands is to look them up in the keybinding page 🤔

@gregvanl gregvanl added the extensibility extension author content under /api label Feb 28, 2019
@gregvanl gregvanl added this to the February 2019 milestone Feb 28, 2019
@gregvanl gregvanl added the small label Feb 28, 2019
@DanTup
Copy link
Contributor Author

DanTup commented Feb 28, 2019

The text that was added isn't really as useful as it could be:

I presume that it matches the currently selected debug session if there are multiple (and that it changes as you switch between the active sessions) but I think it should be written somewhere.

debugType | True when debug type matches. Example: `"debugType == 'node'"`.

"the debug type" is a little vague since VS Code can run have multiple active debug sessions at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extensibility extension author content under /api small
Projects
None yet
Development

No branches or pull requests

2 participants