diff --git a/src/sql/workbench/common/editor/query/queryEditorInput.ts b/src/sql/workbench/common/editor/query/queryEditorInput.ts index aec8422643..791482d79f 100644 --- a/src/sql/workbench/common/editor/query/queryEditorInput.ts +++ b/src/sql/workbench/common/editor/query/queryEditorInput.ts @@ -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(); } } diff --git a/src/vs/workbench/browser/workbench.contribution.ts b/src/vs/workbench/browser/workbench.contribution.ts index 351f862d99..2380b35282 100644 --- a/src/vs/workbench/browser/workbench.contribution.ts +++ b/src/vs/workbench/browser/workbench.contribution.ts @@ -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'