@@ -199,7 +199,7 @@ export class ProcessBasedTsServer extends Disposable implements ITypeScriptServe
199199 request,
200200 expectsResponse : executeInfo . expectsResult ,
201201 isAsync : executeInfo . isAsync ,
202- queueingType : getQueueingType ( command , executeInfo . lowPriority )
202+ queueingType : ProcessBasedTsServer . getQueueingType ( command , executeInfo . lowPriority )
203203 } ;
204204 let result : Promise < ServerResponse . Response < Proto . Response > > | undefined ;
205205 if ( executeInfo . expectsResult ) {
@@ -280,16 +280,17 @@ export class ProcessBasedTsServer extends Disposable implements ITypeScriptServe
280280 this . _pendingResponses . delete ( seq ) ;
281281 return callback ;
282282 }
283- }
284283
285- const fenceCommands = new Set ( [ 'change' , 'close' , 'open' , 'updateOpen' ] ) ;
284+ private static readonly fenceCommands = new Set ( [ 'change' , 'close' , 'open' , 'updateOpen' ] ) ;
286285
287- function getQueueingType (
288- command : string ,
289- lowPriority ?: boolean
290- ) : RequestQueueingType {
291- if ( fenceCommands . has ( command ) ) {
292- return RequestQueueingType . Fence ;
286+ private static getQueueingType (
287+ command : string ,
288+ lowPriority ?: boolean
289+ ) : RequestQueueingType {
290+ if ( ProcessBasedTsServer . fenceCommands . has ( command ) ) {
291+ return RequestQueueingType . Fence ;
292+ }
293+ return lowPriority ? RequestQueueingType . LowPriority : RequestQueueingType . Normal ;
293294 }
294- return lowPriority ? RequestQueueingType . LowPriority : RequestQueueingType . Normal ;
295295}
296+
0 commit comments