提交 7e293723 编写于 作者: R Ramya Achutha Rao

Use new emmet commands only when useNewEmmet is true

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