mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
No emmet suggestions inside script tag fixes #32732
This commit is contained in:
@@ -72,9 +72,13 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
const currentHtmlNode = <HtmlNode>currentNode;
|
||||
if (currentHtmlNode
|
||||
&& currentHtmlNode.close
|
||||
&& currentHtmlNode.name === 'style'
|
||||
&& getInnerRange(currentHtmlNode).contains(position)) {
|
||||
return 'css';
|
||||
if (currentHtmlNode.name === 'style') {
|
||||
return 'css';
|
||||
}
|
||||
if (currentHtmlNode.name === 'script') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user