Validate position for emmet using best guess fixes #45634

This commit is contained in:
Ramya Achutha Rao
2018-03-12 23:33:55 -07:00
parent b7cf44841a
commit 9d578694d0

View File

@@ -35,6 +35,12 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
return;
}
if (isSyntaxMapped
&& syntax === 'html'
&& !isValidLocationForEmmetAbbreviation(document, null, syntax, position, extractAbbreviationResults.abbreviationRange)) {
return;
}
// If document can be css parsed, validate syntax and location
if (isStyleSheet(document.languageId)) {
const rootNode = parseDocument(document, false);