mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Disable emmet completion provider for mapped modes #29318
This commit is contained in:
@@ -13,17 +13,11 @@ import { isValidLocationForEmmetAbbreviation } from './abbreviationActions';
|
||||
import { getSyntax, getNode, getInnerRange } from './util';
|
||||
|
||||
export class DefaultCompletionItemProvider implements vscode.CompletionItemProvider {
|
||||
private _mappedSyntax = false;
|
||||
constructor(mappedSyntax?: boolean) {
|
||||
if (mappedSyntax) {
|
||||
this._mappedSyntax = mappedSyntax;
|
||||
}
|
||||
}
|
||||
|
||||
public provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken): Thenable<vscode.CompletionList> {
|
||||
let syntax = getSyntax(document);
|
||||
if (!this._mappedSyntax) {
|
||||
syntax = this.syntaxHelper(syntax, document, position);
|
||||
}
|
||||
syntax = this.syntaxHelper(syntax, document, position);
|
||||
|
||||
if (!syntax) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user