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 @@ -250,6 +250,11 @@ namespace ts.server {
250
250
private requestQueue : QueuedOperation [ ] = [ ] ;
251
251
private requestMap = createMap < QueuedOperation > ( ) ; // Maps operation ID to newest requestQueue entry with that ID
252
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.
253
258
private static readonly maxActiveRequestCount = 10 ;
254
259
private static readonly requestDelayMillis = 100 ;
255
260
You can’t perform that action at this time.
0 commit comments