Handle ext host exit when debugging

Fixes #70984
This commit is contained in:
Daniel Imms
2019-03-27 10:58:09 -07:00
parent fcb773d1ca
commit 6b81670102
2 changed files with 14 additions and 3 deletions

View File

@@ -641,11 +641,12 @@ export class ExtHostExtensionService implements ExtHostExtensionServiceShape {
// to give the PH process a chance to flush any outstanding console
// messages to the main process, we delay the exit() by some time
setTimeout(() => {
if (!!this._initData.environment.extensionTestsLocationURI) {
// If extension tests are running, give the exit code to the renderer
// If extension tests are running, give the exit code to the renderer
if (this._initData.remoteAuthority && !!this._initData.environment.extensionTestsLocationURI) {
this._mainThreadExtensionsProxy.$onExtensionHostExit(code);
return;
}
this._nativeExit(code);
}, 500);
}