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

When 'shrink' is the Tab Sizing selected, there should be a delay before the tab shrinks #113860

Closed
tyirvine opened this issue Jan 5, 2021 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) workbench-tabs VS Code editor tab issues

Comments

@tyirvine
Copy link

tyirvine commented Jan 5, 2021

Shrinking the tab was inspired by web browsers such as Google Chrome or Safari. What makes shrinking a tab so great is that it's easy to delete 10 tabs at once. This is because there is a slight (maybe 250ms) delay before the browser resizes the tab.

Right now, VS Code is shrinking the tabs the moment a tab is deleted. So if the number of tabs (sized at the minimum) exceeds the width of your editor window, great! You won't have this issue. Otherwise, as soon as the number of tabs (sized at the minimum) is less than your editor window's width then you have a problem → every tab you delete will cause the entire tab collection to resize instantly.

I ran into this problem when browsing extensions. I somehow managed to open up ~50 tabs. I've never worked on the VS Code application itself but I'd be happy to do this! It seems like a pretty easy fix but I don't have any familiarity with this code base.

If this is a duplicate I apologize! I couldn't any similar issues.

Screen Recording 2021-01-05 at 3 26 52 PM

@bpasero bpasero added *duplicate Issue identified as a duplicate of another issue(s) workbench-tabs VS Code editor tab issues labels Jan 6, 2021
@bpasero
Copy link
Member

bpasero commented Jan 6, 2021

This issue has been reported already in either this or a similar form. Please check the label that was assigned to this issue to find it.

@tyirvine
Copy link
Author

tyirvine commented Jan 6, 2021

Duplicate of #40290

@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) workbench-tabs VS Code editor tab issues
Projects
None yet
Development

No branches or pull requests

3 participants
@bpasero @tyirvine and others