提交 8ace8efa 编写于 作者: R Ramya Achutha Rao

Use new emmet for all emmet actions other than expand and wrap abbr

上级 868b8208
...@@ -296,7 +296,7 @@ export abstract class EmmetEditorAction extends EditorAction { ...@@ -296,7 +296,7 @@ export abstract class EmmetEditorAction extends EditorAction {
const telemetryService = accessor.get(ITelemetryService); const telemetryService = accessor.get(ITelemetryService);
const commandService = accessor.get(ICommandService); const commandService = accessor.get(ICommandService);
let mappedCommand = configurationService.getConfiguration<IEmmetConfiguration>().emmet.useNewEmmet ? this.actionMap[this.id] : undefined; let mappedCommand = this.actionMap[this.id];
if (mappedCommand && mappedCommand !== 'emmet.expandAbbreviation' && mappedCommand !== 'emmet.wrapWithAbbreviation') { if (mappedCommand && mappedCommand !== 'emmet.expandAbbreviation' && mappedCommand !== 'emmet.wrapWithAbbreviation') {
return commandService.executeCommand<void>(mappedCommand); return commandService.executeCommand<void>(mappedCommand);
} }
...@@ -312,7 +312,8 @@ export abstract class EmmetEditorAction extends EditorAction { ...@@ -312,7 +312,8 @@ export abstract class EmmetEditorAction extends EditorAction {
this.emmetActionName this.emmetActionName
); );
if (mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation') { if (configurationService.getConfiguration<IEmmetConfiguration>().emmet.useNewEmmet
&& (mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation')) {
let syntax = editorAccessor.getSyntax(); let syntax = editorAccessor.getSyntax();
return commandService.executeCommand<void>(mappedCommand, { syntax }); return commandService.executeCommand<void>(mappedCommand, { syntax });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册