Merge pull request #122399 from solomatov/ext-host-hang

Terminate in case of ext host IPC timeout
This commit is contained in:
Alexandru Dima 2021-04-28 17:14:22 +02:00 committed by GitHub
commit 5728f84b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ function _createExtHostProtocol(): Promise<PersistentProtocol> {
let protocol: PersistentProtocol | null = null;
let timer = setTimeout(() => {
reject(new Error('VSCODE_EXTHOST_IPC_SOCKET timeout'));
onTerminate('VSCODE_EXTHOST_IPC_SOCKET timeout');
}, 60000);
const reconnectionGraceTime = ProtocolConstants.ReconnectionGraceTime;