@@ -43,7 +43,7 @@ namespace ts.server {
4343 let lastSent : protocol . Message ;
4444
4545 beforeEach ( ( ) => {
46- session = new Session ( mockHost , nullCancellationToken , /*useOneInferredProject*/ false , Utils . byteLength , Utils . compress , process . hrtime , mockLogger ) ;
46+ session = new Session ( mockHost , nullCancellationToken , /*useOneInferredProject*/ false , Utils . byteLength , Utils . maxUncompressedMessageSize , Utils . compress , process . hrtime , mockLogger ) ;
4747 session . send = ( msg : protocol . Message ) => {
4848 lastSent = msg ;
4949 } ;
@@ -268,7 +268,7 @@ namespace ts.server {
268268 lastSent : protocol . Message ;
269269 customHandler = "testhandler" ;
270270 constructor ( ) {
271- super ( mockHost , nullCancellationToken , /*useOneInferredProject*/ false , Utils . byteLength , Utils . compress , process . hrtime , mockLogger ) ;
271+ super ( mockHost , nullCancellationToken , /*useOneInferredProject*/ false , Utils . byteLength , Utils . maxUncompressedMessageSize , Utils . compress , process . hrtime , mockLogger ) ;
272272 this . addProtocolHandler ( this . customHandler , ( ) => {
273273 return { response : undefined , responseRequired : true } ;
274274 } ) ;
@@ -326,7 +326,7 @@ namespace ts.server {
326326 class InProcSession extends Session {
327327 private queue : protocol . Request [ ] = [ ] ;
328328 constructor ( private client : InProcClient ) {
329- super ( mockHost , nullCancellationToken , /*useOneInferredProject*/ false , Utils . byteLength , Utils . compress , process . hrtime , mockLogger ) ;
329+ super ( mockHost , nullCancellationToken , /*useOneInferredProject*/ false , Utils . byteLength , Utils . maxUncompressedMessageSize , Utils . compress , process . hrtime , mockLogger ) ;
330330 this . addProtocolHandler ( "echo" , ( req : protocol . Request ) => ( {
331331 response : req . arguments ,
332332 responseRequired : true
0 commit comments