Skip to content

Commit e3b1667

Browse files
authored
uncaught exception from ProxyChannel.fromService (fix microsoft#192365) (microsoft#194387)
1 parent b792feb commit e3b1667

File tree

1 file changed

+5
-1
lines changed
  • src/vs/base/parts/ipc/common

1 file changed

+5
-1
lines changed

src/vs/base/parts/ipc/common/ipc.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,11 @@ export namespace ProxyChannel {
11291129
}
11301130
}
11311131

1132-
return target.apply(handler, args);
1132+
let res = target.apply(handler, args);
1133+
if (!(res instanceof Promise)) {
1134+
res = Promise.resolve(res);
1135+
}
1136+
return res;
11331137
}
11341138

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

0 commit comments

Comments
 (0)