diff --git a/src/vs/workbench/services/extensions/node/extensionHostProcess.ts b/src/vs/workbench/services/extensions/node/extensionHostProcess.ts index 5f2935618c6f30b1a88985bca94e84520f47565d..40f22930a7e3656312c8ca373be7dc200db03cd5 100644 --- a/src/vs/workbench/services/extensions/node/extensionHostProcess.ts +++ b/src/vs/workbench/services/extensions/node/extensionHostProcess.ts @@ -107,9 +107,14 @@ function connectToRenderer(protocol: IMessagePassingProtocol): Promise { const idx = unhandledPromises.indexOf(promise); if (idx >= 0) { - unhandledPromises.splice(idx, 1); - console.warn('rejected promise not handled within 1 second'); - onUnexpectedError(reason); + promise.catch(e => { + unhandledPromises.splice(idx, 1); + console.warn(`rejected promise not handled within 1 second: ${e}`); + if (e.stack) { + console.warn(`stack trace: ${e.stack}`); + } + onUnexpectedError(reason); + }); } }, 1000); });