This commit is contained in:
Johannes Rieken
2020-08-26 18:24:29 +02:00
parent 35ba71b741
commit 600d8a51cb
9 changed files with 89 additions and 54 deletions

View File

@@ -141,7 +141,7 @@ export class ExtHostCommands implements ExtHostCommandsShape {
try {
const result = await this._proxy.$executeCommand<T>(id, toArgs, retry);
return revive(result);
return revive<any>(result);
} catch (e) {
// Rerun the command when it wasn't known, had arguments, and when retry
// is enabled. We do this because the command might be registered inside