mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Fix potential hang when canceling ts requests using pipe. Part of #24698
This commit is contained in:
@@ -910,6 +910,13 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
|
||||
return true;
|
||||
} catch (e) {
|
||||
// noop
|
||||
} finally {
|
||||
const p = this.callbacks[seq];
|
||||
if (p) {
|
||||
delete this.callbacks[seq];
|
||||
this.pendingResponses--;
|
||||
p.e(new Error(`Cancelled Request ${seq}`));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user