diff --git a/src/vs/platform/commands/common/commands.ts b/src/vs/platform/commands/common/commands.ts index 558759236f5..528601491b2 100644 --- a/src/vs/platform/commands/common/commands.ts +++ b/src/vs/platform/commands/common/commands.ts @@ -108,9 +108,7 @@ export const CommandsRegistry: ICommandRegistry = new class implements ICommandR } registerCommandAlias(oldId: string, newId: string): IDisposable { - return CommandsRegistry.registerCommand(oldId, (accessor, ...args) => { - accessor.get(ICommandService).executeCommand(newId, ...args); - }); + return CommandsRegistry.registerCommand(oldId, (accessor, ...args) => accessor.get(ICommandService).executeCommand(newId, ...args)); } getCommand(id: string): ICommand | undefined {