mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix potential hang when canceling ts requests using pipe. Part of #24698
This commit is contained in:
parent
a2a0c3287c
commit
066db6b85f
|
@ -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}`));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue