Enable emmet inside script tag if mimetype is html Fixes #34921

This commit is contained in:
Ramya Achutha Rao
2017-09-25 15:09:31 -07:00
parent e1a677d753
commit 67df88dbce
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
}
}