提交 988ead88 编写于 作者: R Ramya Rao 提交者: GitHub

Fixes #18427 Map jsx-tags lang id to jsx in emmet (#18472)

上级 87ae03d9
......@@ -162,7 +162,7 @@ export class EditorAccessor implements emmet.Editor {
return syntax;
}
if (/\b(typescriptreact|javascriptreact)\b/.test(syntax)) { // treat tsx like jsx
if (/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(syntax)) { // treat tsx like jsx
return 'jsx';
}
if (syntax === 'sass-indented') { // map sass-indented to sass
......
......@@ -73,6 +73,7 @@ suite('Emmet', () => {
// mapped syntaxes
testIsEnabled('typescriptreact', null);
testIsEnabled('javascriptreact', null);
testIsEnabled('jsx-tags', null);
testIsEnabled('sass-indented', null);
// syntaxes mapped using the scope name of the grammar
......@@ -147,6 +148,7 @@ suite('Emmet', () => {
// mapped syntaxes
testSyntax('typescriptreact', null, 'jsx');
testSyntax('javascriptreact', null, 'jsx');
testSyntax('jsx-tags', null, 'jsx');
testSyntax('sass-indented', null, 'sass');
// syntaxes mapped using the scope name of the grammar
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册