Add a setting to ignore dirty tabs in workbench.editor.limit.value. (#144545)

* Add a setting to ignore dirty tabs in workbench.editor.limit.value.

* Add a setting to ignore dirty tabs in workbench.editor.limit.value.

* Update src/vs/workbench/browser/parts/editor/editorsObserver.ts

Co-authored-by: Kirill Dubovitskiy <kirill2003de@gmail.com>

* Modify variable name.

* update based on suggestions

* 💄

Co-authored-by: Kirill Dubovitskiy <kirill2003de@gmail.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
This commit is contained in:
Keming Liang
2022-03-28 21:31:00 +08:00
committed by GitHub
parent 8b284de9b2
commit 5813dd830c
3 changed files with 25 additions and 3 deletions

View File

@@ -258,6 +258,11 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
'exclusiveMinimum': 0,
'markdownDescription': localize('limitEditorsMaximum', "Controls the maximum number of opened editors. Use the `#workbench.editor.limit.perEditorGroup#` setting to control this limit per editor group or across all groups.")
},
'workbench.editor.limit.excludeDirty': {
'type': 'boolean',
'default': false,
'description': localize('limitEditorsExcludeDirty', "Controls if the maximum number of opened editors should exclude dirty editors for counting towards the configured limit.")
},
'workbench.editor.limit.perEditorGroup': {
'type': 'boolean',
'default': false,