Updated Editor Actions Location Settings and UI Changes (#197547)

* Updated editor actions location settings and related UI changes

* ShowEditorActions
This commit is contained in:
Benjamin Simmonds
2023-11-07 10:44:51 +01:00
committed by GitHub
parent b4edfe8c8a
commit d576523abb
12 changed files with 219 additions and 44 deletions

View File

@@ -49,15 +49,16 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
'description': localize('showEditorTabs', "Controls whether opened editors should show as individual tabs, one single large tab or if the title area should not be shown."),
'default': 'multiple'
},
'workbench.editor.showEditorActionsInTitleBar': {
'workbench.editor.editorActionsLocation': {
'type': 'string',
'enum': ['noTabs', 'never'],
'enum': ['default', 'titleBar', 'hidden'],
'enumDescriptions': [
localize('workbench.editor.showEditorActionsInTitleBar.noTabs', "Show editor actions in the editor title bar only when `#workbench.editor.showTabs#` is set to `none`. Otherwise, editor actions show up in the tab bar."),
localize('workbench.editor.showEditorActionsInTitleBar.never', "Do not show editor actions in the editor title bar"),
localize('workbench.editor.editorActionsLocation.default', "Show editor actions in the window title bar when `#workbench.editor.showTabs#` is set to `none`. Otherwise, editor actions are shown in the editor tab bar."),
localize('workbench.editor.editorActionsLocation.titleBar', "Show editor actions in the window title bar. If `#window.titleBarStyle#` is set to `native`, editor actions are hidden."),
localize('workbench.editor.editorActionsLocation.hidden', "Editor actions are not shown."),
],
'markdownDescription': localize('showEditorActionsInTitleBar', "Controls whether editor actions are shown in the title bar. This value only applies when `#window.titleBarStyle#` is set to `custom`."),
'default': 'noTabs'
'markdownDescription': localize('editorActionsLocation', "Controls where the editor actions are shown."),
'default': 'default'
},
'workbench.editor.wrapTabs': {
'type': 'boolean',