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

Add option to show editor actions in title bar #196609

Merged
merged 19 commits into from
Nov 4, 2023
Merged

Conversation

benibenj
Copy link
Contributor

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 when window.titleBarStyle is set to custom and workbench.editor.showTabs is set to none. This feature is useful for users who prefer a minimalistic UI and want to access editor actions quickly.

Fixes #196384

@benibenj benibenj self-assigned this Oct 25, 2023
@benibenj benibenj added this to the November 2023 milestone Oct 26, 2023
@benibenj benibenj marked this pull request as ready for review October 30, 2023 15:53
@benibenj benibenj requested a review from bpasero October 30, 2023 15:54
@bpasero bpasero requested a review from sbatten October 31, 2023 08:51
Copy link
Member

@bpasero bpasero left a 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.

@benibenj benibenj requested a review from bpasero October 31, 2023 12:11
@bpasero bpasero self-requested a review November 1, 2023 11:56
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting close.

@benibenj benibenj requested review from bpasero and sandy081 November 2, 2023 15:59
bpasero
bpasero previously approved these changes Nov 3, 2023
Copy link
Member

@bpasero bpasero left a 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

Copy link
Member

@sandy081 sandy081 left a 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.

@benibenj
Copy link
Contributor Author

benibenj commented Nov 3, 2023

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.

@benibenj benibenj requested a review from sandy081 November 3, 2023 15:16
sandy081
sandy081 previously approved these changes Nov 3, 2023
Copy link
Member

@sandy081 sandy081 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@benibenj benibenj removed the request for review from sbatten November 3, 2023 15:32
sandy081
sandy081 previously approved these changes Nov 3, 2023
@benibenj benibenj enabled auto-merge November 3, 2023 16:57
@benibenj benibenj merged commit c2d75ed into main Nov 4, 2023
@benibenj benibenj deleted the benibenj/hideTabsActionBar branch November 4, 2023 11:18
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide an option to show editor title actions in custom title bar when editor tabs are hidden
4 participants