-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[editor] add misc toggle commands to the view menu #6843
Conversation
- adds the `toggle minimap` menu with the toggle functionality. - introduces a new menu group called `CommonMenus.VIEW_TOGGLE`. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
- adds the `toggle render whitespace` command and menu item. - adds the functionality to display the command as a toggle. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing, when the "View" pulldown menu is opened and the user open the command palette with "CTRL+ SHIFT+P", the pulldown-menu does not go away, so using the command to "Render White space" does nor refresh the toggle in the pulldown-menu until you move the mouse outside the pulldown-menu.
May be we should close the pulldown menu when activating the command palette. (Same as VSCode)
That is very much out-of-scope for the pull request and exists already in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a new issue to track the command palette overlay the pull-down menu.
Works fine with Chrome on UBUNTU
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in example browser.
Fixes #2433 - added command `toggle word wrap` which toggles the word wrap value from all available values present in the preference. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
ae1a9eb
to
8519c5a
Compare
What it does
View: Toggle Word Wrap
:Fixes #2433
Adds the command, menu item, and keybinding which is used to toggle between the available word wrap values: (off, on, wordWrapColumn, bounded).
View Toggle Minimap
:Adds the missing view menu item to toggle the display of the minimap.
Adds the
isToggled
property to display the checkmark when the setting ison
/off
.View: Toggle Render Whitespace
:Adds the command, and menu item to control the rendering of whitespace characters in the editor.
Adds the
isToggled
property to display the checkmark when the setting ison
/off
.How to test
toggle word wrap
(should properly cycle between possible values)toggle minimap
(should properly turn the minimap on/off)toggle render whitespace
(should properly turn the rendering of whitespace characters on/off)Review checklist
Reminder for reviewers