This commit is contained in:
Johannes Rieken
2017-12-15 17:11:07 +01:00
parent 34aafba6b7
commit 3bac9bd027
2 changed files with 6 additions and 2 deletions

View File

@@ -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);
});
})
);
}