提交 3bac9bd0 编写于 作者: J Johannes Rieken

fix #40307

上级 34aafba6
......@@ -57,7 +57,11 @@ export class MainThreadCommands implements MainThreadCommandsShape {
$registerCommand(id: string): void {
this._disposables.set(
id,
CommandsRegistry.registerCommand(id, (accessor, ...args) => this._proxy.$executeContributedCommand(id, ...args))
CommandsRegistry.registerCommand(id, (accessor, ...args) => {
return this._proxy.$executeContributedCommand(id, ...args).then(result => {
return revive(result, 0);
});
})
);
}
......
......@@ -101,7 +101,7 @@ export class ExtHostCommands implements ExtHostCommandsShape {
}
});
return this._proxy.$executeCommand<T>(id, args);
return this._proxy.$executeCommand<T>(id, args).then(result => revive(result, 0));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册