mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Remove emmet autocomplete for jsx Fixes #29185
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user