Skip to content

Commit 08510a5

Browse files
committed
make sure command aliases return command's result, microsoft#65809
1 parent 58ac82d commit 08510a5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/vs/platform/commands/common/commands.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ export const CommandsRegistry: ICommandRegistry = new class implements ICommandR
108108
}
109109

110110
registerCommandAlias(oldId: string, newId: string): IDisposable {
111-
return CommandsRegistry.registerCommand(oldId, (accessor, ...args) => {
112-
accessor.get(ICommandService).executeCommand(newId, ...args);
113-
});
111+
return CommandsRegistry.registerCommand(oldId, (accessor, ...args) => accessor.get(ICommandService).executeCommand(newId, ...args));
114112
}
115113

116114
getCommand(id: string): ICommand | undefined {

0 commit comments

Comments
 (0)