Skip to content

Commit

Permalink
uncaught exception from ProxyChannel.fromService (fix microsoft#192365)…
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 28, 2023
1 parent b792feb commit e3b1667
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vs/base/parts/ipc/common/ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,11 @@ export namespace ProxyChannel {
}
}

return target.apply(handler, args);
let res = target.apply(handler, args);
if (!(res instanceof Promise)) {
res = Promise.resolve(res);
}
return res;
}

throw new ErrorNoTelemetry(`Method not found: ${command}`);
Expand Down

0 comments on commit e3b1667

Please sign in to comment.