diff --git a/src/vs/workbench/parts/emmet/electron-browser/emmetActions.ts b/src/vs/workbench/parts/emmet/electron-browser/emmetActions.ts index 1a640ecc7f009386f19b90a185ecfa1fe78166dc..d283d07d46fb7e456df20b9e5abdd95962d6b97d 100644 --- a/src/vs/workbench/parts/emmet/electron-browser/emmetActions.ts +++ b/src/vs/workbench/parts/emmet/electron-browser/emmetActions.ts @@ -296,7 +296,7 @@ export abstract class EmmetEditorAction extends EditorAction { const telemetryService = accessor.get(ITelemetryService); const commandService = accessor.get(ICommandService); - let mappedCommand = configurationService.getConfiguration().emmet.useNewEmmet ? this.actionMap[this.id] : undefined; + let mappedCommand = this.actionMap[this.id]; if (mappedCommand && mappedCommand !== 'emmet.expandAbbreviation' && mappedCommand !== 'emmet.wrapWithAbbreviation') { return commandService.executeCommand(mappedCommand); } @@ -312,7 +312,8 @@ export abstract class EmmetEditorAction extends EditorAction { this.emmetActionName ); - if (mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation') { + if (configurationService.getConfiguration().emmet.useNewEmmet + && (mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation')) { let syntax = editorAccessor.getSyntax(); return commandService.executeCommand(mappedCommand, { syntax }); }