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 a setting to ignore dirty tabs in workbench.editor.limit.value
#144309
Comments
What happens when a dirty tab is getting closed due to the limit? You still need to get asked for saving or reverting no? |
I would like dirty tabs to never get auto-closed (same behaviour as now). Dirty tabs should simply not count towards the limit. If my limit is 3 and I have 5 dirty tabs, then I still want to be able to open 3 clean tabs. |
Oh I see. |
workbench.editor.limit.value
I think this can be done by a contribution via PR behind a new setting, relevant code piece is:
|
hello,could I work on this issue as my first one ? |
Yes, anyone can work on this 👍 |
this pr is as |
Thanks, will take a look later this month. |
thanks @bpasero @luoriyuhui21 ❤️ |
Verification: play with the new |
@bpasero This setting is sort of what I do with the tabs API sample. I wonder if we should just have an extension which implements all these caveats. |
I have long been looking for a way to keep my tabs tidy and was extremely happy to find the
workbench.editor.limit
feature.Per @bpasero #9872 (comment), dirty tabs count towards the editor tabs limit. This is unfortunate, because I often have several dirty tabs and once their number approaches the open tabs limit, I no longer get to open several clean tabs in parallel. I would like to have an option for
workbench.editor.limit.value
to ignore dirty tabs.The text was updated successfully, but these errors were encountered: