Restrict html/css to only handling file and untitled files. Part of #48777

This commit is contained in:
Pine Wu
2018-04-26 10:58:17 -07:00
parent f3ba8606e1
commit 0dfeec2eef
3 changed files with 22 additions and 3 deletions

View File

@@ -47,7 +47,14 @@ export function activate(context: ExtensionContext) {
debug: { module: serverModule, transport: TransportKind.ipc, options: debugOptions }
};
let documentSelector = ['html', 'handlebars', 'razor'];
let documentSelector = [
{ language: 'html', scheme: 'file' },
{ language: 'html', scheme: 'untitled' },
{ language: 'handlebars', scheme: 'file' },
{ language: 'handlebars', scheme: 'untitled' },
{ language: 'razor', scheme: 'file' },
{ language: 'razor', scheme: 'untitled' }
];
let embeddedLanguages = { css: true, javascript: true };
// Options to control the language client