提交 93de2bd8 编写于 作者: R Ramya Achutha Rao

Remove emmet autocomplete for jsx Fixes #29185

上级 07c5fe39
......@@ -16,8 +16,6 @@ export const LANGUAGE_MODES: Object = {
'haml': ['!', '.', '}'],
'xml': ['.', '}'],
'xsl': ['.', '}'],
'javascriptreact': ['.'],
'typescriptreact': ['.'],
'css': [':'],
'scss': [':'],
'sass': [':'],
......@@ -25,7 +23,7 @@ export const LANGUAGE_MODES: Object = {
'stylus': [':']
};
// Explicitly map languages to their parent language to get emmet support
// Explicitly map languages to their parent language to get emmet completion support
export const MAPPED_MODES: Object = {
'handlebars': 'html'
};
......@@ -45,9 +43,6 @@ export function getSyntax(document: vscode.TextDocument): string {
if (document.languageId === 'jade') {
return 'pug';
}
if (document.languageId === 'javascriptreact' || document.languageId === 'typescriptreact') {
return 'jsx';
}
return document.languageId;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册