mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
No emmet at value part of property Fixes #34162
This commit is contained in:
@@ -95,7 +95,7 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
return;
|
||||
}
|
||||
|
||||
let currentNode = getNode(rootNode, position);
|
||||
let currentNode = getNode(rootNode, position, true);
|
||||
|
||||
if (!isStyleSheet(syntax)) {
|
||||
const currentHtmlNode = <HtmlNode>currentNode;
|
||||
@@ -111,7 +111,7 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
}
|
||||
}
|
||||
|
||||
if (!isValidLocationForEmmetAbbreviation(currentNode, syntax, position)) {
|
||||
if (!isValidLocationForEmmetAbbreviation(currentNode, syntax, position, document.getText(document.getWordRangeAtPosition(position)))) {
|
||||
return;
|
||||
}
|
||||
return syntax;
|
||||
|
||||
Reference in New Issue
Block a user