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

View | Toggle Minimap only works when an editor is open #33456

Closed
chrisdias opened this issue Aug 29, 2017 · 3 comments
Closed

View | Toggle Minimap only works when an editor is open #33456

chrisdias opened this issue Aug 29, 2017 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@chrisdias
Copy link
Member

Testing #33301

Open an editor
Note the visibility state of minimap, either on or off
Close all editors
View | Toggle Minimap
Open an editor
Note that the visibility of the minimap has not changed
If you examine settings.json, you see that the value is not changed there either

This is the same behavior as the other "Toggle" commands in the menu group.

It makes me wonder, why are these all "Toggle"? Why aren't they check marks of on or off, like File | AutoSave.

@alexdima
Copy link
Member

alexdima commented Aug 30, 2017

👍 Nice find regarding the toggle not working when all editors are closed.

👍 on using checkmarks next to the toggle actions. I will, however, extract this to a separate feature request. The problematic thing here is that those Toggles are possibly editor instance specific. i.e. focused editor specific.

One could configure to see minimap only in TypeScript files and not in JavaScript files via our language selectors. Users would expect then, when focus is in a TypeScript file, and they invoke the menu, that the checkmark would be checked since minimap is enabled in TypeScript files. Also, when focus is in a JavaScript file, and they invoke the menu, the checkmark should be unchecked.

Our menus do not update when a specific editor is focused, so our only chance at this time for these potentially editor specific actions is to have a generic "Toggle X" label, until we can make that the menus update whenever a specific editor gets focused.

@alexdima alexdima added the bug Issue identified by VS Code Team member as probable bug label Aug 30, 2017
@alexdima alexdima added this to the August 2017 milestone Aug 30, 2017
@alexdima
Copy link
Member

alexdima commented Sep 1, 2017

Will postpone for September. Multiple Toggle actions share the same problem.

@alexdima alexdima modified the milestones: September 2017, August 2017 Sep 1, 2017
@alexdima alexdima modified the milestones: September 2017, On Deck Sep 28, 2017
@alexdima
Copy link
Member

I have migrated ToggleMinimapAction, ToggleRenderControlCharacterAction and ToggleRenderWhitespaceAction to be workbench actions such that they can run also when an editor is not in opened.

@alexdima alexdima modified the milestones: On Deck, May 2018 Apr 30, 2018
@dbaeumer dbaeumer added the verified Verification succeeded label May 30, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 14, 2018
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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants