File tree Expand file tree Collapse file tree
src/vs/workbench/parts/emmet/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ export abstract class EmmetEditorAction extends EditorAction {
296296 const telemetryService = accessor . get ( ITelemetryService ) ;
297297 const commandService = accessor . get ( ICommandService ) ;
298298
299- let mappedCommand = configurationService . getConfiguration < IEmmetConfiguration > ( ) . emmet . useNewEmmet ? this . actionMap [ this . id ] : undefined ;
299+ let mappedCommand = this . actionMap [ this . id ] ;
300300 if ( mappedCommand && mappedCommand !== 'emmet.expandAbbreviation' && mappedCommand !== 'emmet.wrapWithAbbreviation' ) {
301301 return commandService . executeCommand < void > ( mappedCommand ) ;
302302 }
@@ -312,7 +312,8 @@ export abstract class EmmetEditorAction extends EditorAction {
312312 this . emmetActionName
313313 ) ;
314314
315- if ( mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation' ) {
315+ if ( configurationService . getConfiguration < IEmmetConfiguration > ( ) . emmet . useNewEmmet
316+ && ( mappedCommand === 'emmet.expandAbbreviation' || mappedCommand === 'emmet.wrapWithAbbreviation' ) ) {
316317 let syntax = editorAccessor . getSyntax ( ) ;
317318 return commandService . executeCommand < void > ( mappedCommand , { syntax } ) ;
318319 }
You can’t perform that action at this time.
0 commit comments