mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Enter Unresponsive state if at least 2 request are pending (#58672)
This commit is contained in:
@@ -192,14 +192,12 @@ export class RPCProtocol extends Disposable implements IRPCProtocol {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Date.now() > this._unresponsiveTime) {
|
||||
if (this._potentialUnresponsiveRequests.length >= 2 && Date.now() > this._unresponsiveTime) {
|
||||
// Unresponsive!!
|
||||
this._setResponsiveState(ResponsiveState.Unresponsive);
|
||||
} else {
|
||||
// Not (yet) unresponsive, be sure to check again soon
|
||||
if (this._potentialUnresponsiveRequests.length > 0) {
|
||||
this._asyncCheckUresponsive.schedule();
|
||||
}
|
||||
this._asyncCheckUresponsive.schedule();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user