mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
emmet.excludeLang shouldnt need reload. Fixes #29680
This commit is contained in:
@@ -10,12 +10,15 @@ import { Node, HtmlNode } from 'EmmetNode';
|
||||
import { DocumentStreamReader } from './bufferStream';
|
||||
import { EmmetCompletionItemProvider, isStyleSheet } from 'vscode-emmet-helper';
|
||||
import { isValidLocationForEmmetAbbreviation } from './abbreviationActions';
|
||||
import { getSyntax, getNode, getInnerRange } from './util';
|
||||
import { getSyntax, getNode, getInnerRange, getExcludedModes } from './util';
|
||||
|
||||
export class DefaultCompletionItemProvider implements vscode.CompletionItemProvider {
|
||||
|
||||
public provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Thenable<vscode.CompletionList> {
|
||||
let syntax = getSyntax(document);
|
||||
if (getExcludedModes().indexOf(syntax) > -1) {
|
||||
return;
|
||||
}
|
||||
syntax = this.syntaxHelper(syntax, document, position);
|
||||
|
||||
if (!syntax) {
|
||||
|
||||
Reference in New Issue
Block a user