mirror of
https://github.com/Microsoft/vscode
synced 2024-10-03 01:46:42 +00:00
Remove emmet autocomplete for jsx Fixes #29185
This commit is contained in:
parent
07c5fe39dd
commit
93de2bd8df
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue