From 08510a5b25fef20e85b6469b6892e6a8946f08f2 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 3 Jan 2019 11:13:22 +0100 Subject: [PATCH] make sure command aliases return command's result, #65809 --- src/vs/platform/commands/common/commands.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 {