-
Notifications
You must be signed in to change notification settings - Fork 30.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
Add option to show editor actions in title bar #196609
Conversation
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.
I am adding @sbatten for the changes in the title bar.
getEditorActions returns event
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.
Getting close.
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.
@benibenj pushed 2 follow up changes, please check.
- aba22ac : change to require to pass in a
DisposableStore
so that the disposable can be added into, I think with your approach the disposable was never assigned properly because you assigned it inside the function - 1edbc50 : we now create the resource context key in the editor group view but have to be careful to use the same scoped context key service as we used to, so I instantiate it with the scoped instantiator
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.
Lets get rid of TitleBarGlobalControlMenu
, as they are fixed number of actions always. One less menu to manage in titleBarPart and over all
When I hide Accounts or Manage actions, they are moved to overflow menu, but they are not working in overflow menu. They are supposed to show sub menus.
As discussed with @sandy081, we will make Accounts/Manages Actions unhideable until we have a good solution for creating submenus for these actions when they are hidden. |
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.
LGTM
This pull request adds a new configuration option,
workbench.editor.showEditorActionsInTitleBar
, which controls whether editor actions are shown in the title bar. This value only applies whenwindow.titleBarStyle
is set tocustom
andworkbench.editor.showTabs
is set tonone
. This feature is useful for users who prefer a minimalistic UI and want to access editor actions quickly.Fixes #196384