File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,7 @@ export class LanguageClientConnection extends EventEmitter {
539
539
this . _log . debug ( `rpc.sendRequest ${ method } sending` , args )
540
540
try {
541
541
const start = performance . now ( )
542
- let result
542
+ let result : R
543
543
if ( cancellationToken ) {
544
544
result = await this . _rpc . sendRequest ( method , args , cancellationToken )
545
545
} else {
@@ -551,7 +551,7 @@ export class LanguageClientConnection extends EventEmitter {
551
551
552
552
const took = performance . now ( ) - start
553
553
this . _log . debug ( `rpc.sendRequest ${ method } received (${ Math . floor ( took ) } ms)` , result )
554
- return result as R
554
+ return result
555
555
} catch ( e ) {
556
556
const responseError = e as jsonrpc . ResponseError < any >
557
557
if ( cancellationToken && responseError . code === lsp . LSPErrorCodes . RequestCancelled ) {
You can’t perform that action at this time.
0 commit comments