Fix text content in title (#9534)

* fix text content in title

* revert changes and change default setting instead
This commit is contained in:
Anthony Dresser
2020-03-11 12:38:26 -07:00
committed by GitHub
parent 37042a24bc
commit edd396f0fe
2 changed files with 3 additions and 3 deletions

View File

@@ -209,9 +209,9 @@ export abstract class QueryEditorInput extends EditorInput implements IConnectab
} else {
title += localize('disconnected', "disconnected");
}
return this._text.getName() + (longForm ? (' - ' + title) : ` - ${trimTitle(title)}`);
return this.text.getName() + (longForm ? (' - ' + title) : ` - ${trimTitle(title)}`);
} else {
return this._text.getName();
return this.text.getName();
}
}

View File

@@ -49,7 +49,7 @@ import { workbenchConfigurationNodeBase } from 'vs/workbench/common/configuratio
nls.localize('workbench.editor.untitled.labelFormat.content', "The name of the untitled file is derived from the contents of its first line unless it has an associated file path. It will 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',
'default': 'name', // {{SQL CARBON EDIT}} change default from content to name
'description': nls.localize({
comment: ['This is the description for a setting. Values surrounded by parenthesis are not to be translated.'],
key: 'untitledLabelFormat'