We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1afd1fb commit 7fcd7a4Copy full SHA for 7fcd7a4
src/server/server.ts
@@ -250,6 +250,11 @@ namespace ts.server {
250
private requestQueue: QueuedOperation[] = [];
251
private requestMap = createMap<QueuedOperation>(); // Maps operation ID to newest requestQueue entry with that ID
252
253
+ // This number is essentially arbitrary. Processing more than one typings request
254
+ // at a time makes sense, but having too many in the pipe results in a hang
255
+ // (see https://github.com/nodejs/node/issues/7657).
256
+ // It would be preferable to base our limit on the amount of space left in the
257
+ // buffer, but we have yet to find a way to retrieve that value.
258
private static readonly maxActiveRequestCount = 10;
259
private static readonly requestDelayMillis = 100;
260
0 commit comments