Remove emmet autocomplete for jsx Fixes #29185

This commit is contained in:
Ramya Achutha Rao 2017-06-21 17:00:38 -07:00
parent 07c5fe39dd
commit 93de2bd8df

View file

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