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

Visibility of Debug Viewlet (for "when" contexts) #41278

Closed
ebynum opened this issue Jan 8, 2018 · 3 comments
Closed

Visibility of Debug Viewlet (for "when" contexts) #41278

ebynum opened this issue Jan 8, 2018 · 3 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@ebynum
Copy link

ebynum commented Jan 8, 2018

There is not currently a way to detect the visibility (or focus) of the "Debug Viewlet" like there is for the Search and Explorer Viewlets.
[searchViewletVisible, searchInputBoxFocus, explorerViewletVisible, explorerViewletFocus]

My use-case for this is to allow intelligent toggling of the sidebar viewlets (roughly like #41186), although I suspect there are other uses for the visibility and focus when clause contexts.

My requested names would be debugViewletVisible and debugViewletFocus.

@vscodebot vscodebot bot added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jan 8, 2018
@isidorn
Copy link
Contributor

isidorn commented Jan 8, 2018

Please use this context sidebarVisible

@isidorn isidorn closed this as completed Jan 8, 2018
@ebynum
Copy link
Author

ebynum commented Jan 9, 2018

sidebarVisible does not allow for a way to detect which sidebar is visible. If the Explorer Viewlet is open, sidebarVisible is true. If the Debug Viewlet is open, sidebarVisible is true. The purpose of this feature request is a way to determine specifically that the Debug Viewlet is open (to perform a different action).

In my desired use case, pressing Cmd+Shift+D when the Debug Viewlet is not both visible and focused would be to cause it to become both visible and focused (showing and focusing it if it was invisible, focusing it if it was unfocused). Pressing Cmd+Shift+D when the Debug Viewlet is visible and focused would hide the sidebar.

Of note: I am not requesting that this keyboard shortcut (or even the toggling functionality) be added. The feature request is simply that the contexts be available to do this (like in Explorer and Search).

@isidorn isidorn reopened this Jan 9, 2018
@isidorn isidorn added the feature-request Request for new features or functionality label Jan 9, 2018
@isidorn isidorn added this to the Backlog milestone Jan 9, 2018
@isidorn isidorn removed their assignment Jan 9, 2018
@isidorn
Copy link
Contributor

isidorn commented Sep 21, 2018

Use activeViewlet=debug

@isidorn isidorn closed this as completed Sep 21, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants