settings: Add max tabs option (#18933)

Add a `max_tabs` option to the settings that ensure no more than this
amount of tabs are open in a pane. If set to `null`, there is no limit.

Closes #4784

Release Notes:

- Added a `max_tabs` option to cap the maximum number of open tabs.
This commit is contained in:
Ulysse Buonomo
2024-12-13 20:32:55 -08:00
committed by GitHub
parent 0be7cf8ea8
commit cd5d8b4173
3 changed files with 107 additions and 0 deletions
+2
View File
@@ -552,6 +552,8 @@
// 4. Save when idle for a certain amount of time:
// "autosave": { "after_delay": {"milliseconds": 500} },
"autosave": "off",
// Maximum number of tabs per pane. Unset for unlimited.
"max_tabs": null,
// Settings related to the editor's tab bar.
"tab_bar": {
// Whether or not to show the tab bar in the editor