提交 63def6eb 编写于 作者: R Ramya Achutha Rao

Support both syntaxProfiles and includeLanguages until #29678 is resolved

上级 b69887c1
......@@ -62,7 +62,7 @@ export function getMappedSyntax(syntax: string): string {
if (!syntax) {
return;
}
if (/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(syntax)) { // treat tsx like jsx
if (/\b(typescriptreact|javascriptreact|jsx-tags|jsx)\b/.test(syntax)) { // treat tsx like jsx
return 'jsx';
}
if (syntax === 'sass-indented') { // map sass-indented to sass
......
......@@ -314,7 +314,9 @@ export abstract class EmmetEditorAction extends EditorAction {
if (configurationService.getConfiguration<IEmmetConfiguration>().emmet.useNewEmmet
&& (mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation')) {
return commandService.executeCommand<void>(mappedCommand, editorAccessor.getLanguage());
return commandService.executeCommand<void>(mappedCommand, { language: editorAccessor.getSyntax() });
// Below is for when disucssion at https://github.com/Microsoft/vscode/issues/29678 is resolved
//return commandService.executeCommand<void>(mappedCommand, editorAccessor.getLanguage());
}
if (!editorAccessor.isEmmetEnabledMode()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册