提交 67df88db 编写于 作者: R Ramya Achutha Rao

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

上级 e1a677d7
......@@ -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;
}
}
......
......@@ -35,7 +35,7 @@ declare module 'EmmetNode' {
}
export interface Attribute extends Token {
name: string
name: Token
value: Token
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册