update setting since we support non-untitled editors for language detection and clean up code a tad.

This commit is contained in:
Tyler Leonhardt
2021-08-18 10:54:32 -07:00
parent 499abca330
commit 78414130c7
7 changed files with 30 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ suite('vscode - untitled automatic language detection', () => {
assert.strictEqual(editor.document.languageId, 'plaintext');
const settingResult = vscode.workspace.getConfiguration().get<boolean>('workbench.editor.untitled.languageDetection');
const settingResult = vscode.workspace.getConfiguration().get<boolean>('workbench.editor.languageDetection');
assert.ok(settingResult);
const result = await editor.edit(editBuilder => {