make sure command aliases return command's result, #65809

pull/65790/head
Johannes Rieken 2019-01-03 11:13:22 +01:00
parent 58ac82dfeb
commit 08510a5b25
1 changed files with 1 additions and 3 deletions

View File

@ -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 {