mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
Config to limit/disable the new Untitled tab auto-naming (fix #90378)
This commit is contained in:
@@ -42,6 +42,19 @@ import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuratio
|
||||
key: 'tabDescription'
|
||||
}, "Controls the format of the label for an editor."),
|
||||
},
|
||||
'workbench.editor.untitled.labelFormat': {
|
||||
'type': 'string',
|
||||
'enum': ['content', 'name'],
|
||||
'enumDescriptions': [
|
||||
nls.localize('workbench.editor.untitled.labelFormat.content', "The name of the untitled file is derived from the contents of its first line with a fallback to the name in case the line is empty or contains no word characters."),
|
||||
nls.localize('workbench.editor.untitled.labelFormat.name', "The name of the untitled file is not derived from the contents of the file."),
|
||||
],
|
||||
'default': 'content',
|
||||
'description': nls.localize({
|
||||
comment: ['This is the description for a setting. Values surrounded by parenthesis are not to be translated.'],
|
||||
key: 'untitledLabelFormat'
|
||||
}, "Controls the format of the label for an untitled editor."),
|
||||
},
|
||||
'workbench.editor.tabCloseButton': {
|
||||
'type': 'string',
|
||||
'enum': ['left', 'right', 'off'],
|
||||
|
||||
Reference in New Issue
Block a user