mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Validate position for emmet using best guess fixes #45634
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user