-
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
core: remove maximize
with double-click
#11279
Conversation
859d1db
to
3a82cef
Compare
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. |
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. |
cade872
to
72a0244
Compare
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.
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.
72a0244
to
4cabd6b
Compare
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.
Also looks good to me 👍
ded9e35
to
585a6a3
Compare
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]>
585a6a3
to
a311bc9
Compare
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 tofalse
by default to align the behavior with vscode).How to test
workbench.tab.maximize
set tofalse
that tabs are not maximized when double clickingworkbench.tab.maximize
set totrue
that tabs can be maximized using double clickReview checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]