@@ -21,8 +21,14 @@ export class RoslynLanguageServerExport {
2121 const newType = new RequestType < Params , Response , Error > ( type . method ) ;
2222 return await server . sendRequest ( newType , params , token ) ;
2323 }
24-
25- public async sendRequestWithProgress < Params extends PartialResultParams , Response , PartialResult , Error , RegistrationOptions > (
24+
25+ public async sendRequestWithProgress <
26+ Params extends PartialResultParams ,
27+ Response ,
28+ PartialResult ,
29+ Error ,
30+ RegistrationOptions
31+ > (
2632 type : ProtocolRequestType < Params , Response , PartialResult , Error , RegistrationOptions > ,
2733 params : Params ,
2834 onProgress : ( p : PartialResult ) => Promise < any > ,
@@ -31,7 +37,9 @@ export class RoslynLanguageServerExport {
3137 const server = await this . _serverInitialized ;
3238 // We need to recreate the type parameter to ensure that the prototypes line up. The `ProtocolRequestType` we receive could have been
3339 // from a different version.
34- const newType = new ProtocolRequestType < Params , Response , PartialResult , Error , RegistrationOptions > ( type . method ) ;
40+ const newType = new ProtocolRequestType < Params , Response , PartialResult , Error , RegistrationOptions > (
41+ type . method
42+ ) ;
3543 return await server . sendRequestWithProgress ( newType , params , onProgress , token ) ;
3644 }
3745}
0 commit comments