-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Command to make activityBar, menuBar, and statusbar visible (or invisible), or determine their current state, not just toggle #133787
Comments
Those built-in commands just flip the corresponding settings:
You can read/write these setting keys in your extension directly. |
@yume-chan is correct that this can already be done in an extension via the settings |
Thank you! @yume-chan and @sbatten. Is setting "window.menuBarVisbility" available currently? I'm getting this prompt when trying to use this setting: |
@rongxin-liu it is only available as a user setting, not a workspace setting |
Ah, thanks very much, @yume-chan, @sbatten. Just proposed |
Would it be possible to programmatically toggle specific views or items inside the activity bar, status bar, terminal? For instance, in the education use case, @dmalan has mentioned that they'd like to only show the Explorer view in the activity bar, or only show the Terminal view and hide the Problems, Output, etc. So instead of just showing and hiding the whole bar, could we provide more control from the settings? Something like:
cc @sbatten |
That's not currently possible as the users preferences for this are stored in a separate state. Technically that data is sync'd with settings sync so it is export/importable, but we don't have a model today for sharing that state. |
Closing this as there are already some solutions proposed in this issue, and we plan to introduce Profiles soon that will cover the remaining asks. Here's the issue tracking profiles #116740 |
For educational use cases, we're hoping to configure students' workspaces (via Remote settings in Codespaces) to have a standard UI and also provide students with a command and button (via our own extension) via which they can restore their workspace's UI to that default state if they accidentally disable various UI elements while experimenting. At the moment, though, it seems that the visibility of the activityBar, menuBar, and statusbar can only be toggled, not explicitly set to visible or invisible. And there doesn't seem to be a way to inspect their current state, so as to know programmatically (when resetting the UI to a default state) whether or not to toggle them.
Might it be possible to supplement the commands below with commands like
workbench.action.enable{ActivityBar,Statusbar,MenuBar}
andworkbench.action.disable{ActivityBar,Statusbar,MenuBar}
?workbench.action.toggleActivityBarVisibility
workbench.action.toggleStatusbarVisibility
workbench.action.toggleMenuBar
Thank you!
CC @rongxin-liu
The text was updated successfully, but these errors were encountered: