File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,11 @@ namespace ts.server {
251
251
private requestQueue : QueuedOperation [ ] = [ ] ;
252
252
private requestMap = createMap < QueuedOperation > ( ) ; // Maps operation ID to newest requestQueue entry with that ID
253
253
254
+ // This number is essentially arbitrary. Processing more than one typings request
255
+ // at a time makes sense, but having too many in the pipe results in a hang
256
+ // (see https://github.com/nodejs/node/issues/7657).
257
+ // It would be preferable to base our limit on the amount of space left in the
258
+ // buffer, but we have yet to find a way to retrieve that value.
254
259
private static readonly maxActiveRequestCount = 10 ;
255
260
private static readonly requestDelayMillis = 100 ;
256
261
You can’t perform that action at this time.
0 commit comments