Skip to content

Commit 8ace8ef

Browse files
committed
Use new emmet for all emmet actions other than expand and wrap abbr
1 parent 868b820 commit 8ace8ef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/workbench/parts/emmet/electron-browser/emmetActions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)