mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
Enable emmet inside script tag if mimetype is html Fixes #34921
This commit is contained in:
@@ -106,6 +106,10 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
|
||||
return 'css';
|
||||
}
|
||||
if (currentHtmlNode.name === 'script') {
|
||||
if (currentHtmlNode.attributes
|
||||
&& currentHtmlNode.attributes.some(x => x.name.toString() === 'type' && x.value.toString() === 'text/html')) {
|
||||
return syntax;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user