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

core: remove maximize with double-click #11279

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Conversation

vince-fugnitto
Copy link
Member

@vince-fugnitto vince-fugnitto commented Jun 9, 2022

What it does

Fixes: #5757.

The pull-request adds a new preference (workbench.tab.maximize) to control the behavior of whether we want to maximize tabs when double clicking them (preference is set to false by default to align the behavior with vscode).

How to test

  1. start the application and open files
  2. confirm with workbench.tab.maximize set to false that tabs are not maximized when double clicking
  3. confirm with workbench.tab.maximize set to true that tabs can be maximized using double click

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

@vince-fugnitto vince-fugnitto added shell issues related to the core shell core issues related to the core of the application labels Jun 9, 2022
@vince-fugnitto
Copy link
Member Author

Alternatively (as Colin mentioned offline), we could additionally control this behavior using a preference so we leave it up to the user to decide if they want to maximize using double-click or not. In order to align with the default behavior in VS Code I would make the preference off by default.

@colin-grant-work
Copy link
Contributor

colin-grant-work commented Jun 9, 2022

In addition to preference gating, we could just leave the door open to easy customization by downstream applications. If we opt for that course, I think it would make sense to make the default implementation of the double click handler a no-op - in the current code, it's easier to override the double click handler than the method that adds the handler.

Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

This looks good to me. With the preference set to false, tabs do not maximize on double click, which is refreshing. With preference true, they do, so users who rely on that behavior can still activate it if they wish.

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Also looks good to me 👍

CHANGELOG.md Outdated Show resolved Hide resolved
@vince-fugnitto vince-fugnitto force-pushed the vf/tabbar-maximize branch 2 times, most recently from ded9e35 to 585a6a3 Compare June 15, 2022 15:47
The commit adds support for the `workbench.tab.maximize` preference to
control the behavior when double-clicking tabbars. By default the
behavior is not to maximize the tab and align with the behavior found in
vscode.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto merged commit 398fa66 into master Jun 16, 2022
@vince-fugnitto vince-fugnitto deleted the vf/tabbar-maximize branch June 16, 2022 13:47
@github-actions github-actions bot added this to the 1.27.0 milestone Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core issues related to the core of the application shell issues related to the core shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[editor-preview] double-clicking editor tab maximizes view instead of docking
3 participants