change active-editor to ${activeEditorLanguage} (for #78903)

This commit is contained in:
Benjamin Pasero
2020-01-06 15:25:29 +01:00
parent 2c92f67ec5
commit c4192e9bd3
4 changed files with 7 additions and 7 deletions

View File

@@ -36,8 +36,8 @@ export class SettingsDocument {
if (location.path[0] === 'files.defaultLanguage') {
return this.provideLanguageCompletionItems(location, range).then(items => {
// Add special item 'active-editor'
return [this.newSimpleCompletionItem(JSON.stringify('active-editor'), range, localize('activeEditor', "Use the language mode of the currently active text editor if any")), ...items];
// Add special item '${activeEditorLanguage}'
return [this.newSimpleCompletionItem(JSON.stringify('${activeEditorLanguage}'), range, localize('activeEditor', "Use the language of the currently active text editor if any")), ...items];
});
}