提交 08510a5b 编写于 作者: J Johannes Rieken

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

上级 58ac82df
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册