@@ -365,7 +365,7 @@ func (ls *INOLanguageServer) TextDocumentHoverReqFromIDE(ctx context.Context, lo
365
365
}
366
366
clangResp , clangErr , err := ls .Clangd .conn .TextDocumentHover (ctx , clangParams )
367
367
if err != nil {
368
- logger .Logf ("clangd connectiono error: %v" , err )
368
+ logger .Logf ("clangd communication error: %v" , err )
369
369
ls .Close ()
370
370
return nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
371
371
}
@@ -418,7 +418,7 @@ func (ls *INOLanguageServer) TextDocumentSignatureHelpReqFromIDE(ctx context.Con
418
418
cppParams .TextDocumentPositionParams = cppTextDocumentPosition
419
419
cppSignatureHelp , cppErr , err := ls .Clangd .conn .TextDocumentSignatureHelp (ctx , inoParams )
420
420
if err != nil {
421
- logger .Logf ("clangd connectiono error: %v" , err )
421
+ logger .Logf ("clangd communication error: %v" , err )
422
422
ls .Close ()
423
423
return nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
424
424
}
@@ -450,7 +450,7 @@ func (ls *INOLanguageServer) TextDocumentDefinitionReqFromIDE(ctx context.Contex
450
450
cppParams .TextDocumentPositionParams = cppTextDocPosition
451
451
cppLocations , cppLocationLinks , cppErr , err := ls .Clangd .conn .TextDocumentDefinition (ctx , & cppParams )
452
452
if err != nil {
453
- logger .Logf ("clangd connectiono error: %v" , err )
453
+ logger .Logf ("clangd communication error: %v" , err )
454
454
ls .Close ()
455
455
return nil , nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
456
456
}
@@ -497,7 +497,7 @@ func (ls *INOLanguageServer) TextDocumentTypeDefinitionReqFromIDE(ctx context.Co
497
497
cppParams .TextDocumentPositionParams = cppTextDocumentPosition
498
498
cppLocations , cppLocationLinks , cppErr , err := ls .Clangd .conn .TextDocumentTypeDefinition (ctx , & cppParams )
499
499
if err != nil {
500
- logger .Logf ("clangd connectiono error: %v" , err )
500
+ logger .Logf ("clangd communication error: %v" , err )
501
501
ls .Close ()
502
502
return nil , nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
503
503
}
@@ -541,7 +541,7 @@ func (ls *INOLanguageServer) TextDocumentImplementationReqFromIDE(ctx context.Co
541
541
cppParams .TextDocumentPositionParams = cppTextDocumentPosition
542
542
cppLocations , cppLocationLinks , cppErr , err := ls .Clangd .conn .TextDocumentImplementation (ctx , & cppParams )
543
543
if err != nil {
544
- logger .Logf ("clangd connectiono error: %v" , err )
544
+ logger .Logf ("clangd communication error: %v" , err )
545
545
ls .Close ()
546
546
return nil , nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
547
547
}
@@ -582,7 +582,7 @@ func (ls *INOLanguageServer) TextDocumentDocumentHighlightReqFromIDE(ctx context
582
582
clangParams .TextDocumentPositionParams = clangTextDocumentPosition
583
583
clangHighlights , clangErr , err := ls .Clangd .conn .TextDocumentDocumentHighlight (ctx , & clangParams )
584
584
if err != nil {
585
- logger .Logf ("clangd connectiono ERROR: %v" , err )
585
+ logger .Logf ("clangd communication ERROR: %v" , err )
586
586
ls .Close ()
587
587
return nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
588
588
}
@@ -628,7 +628,7 @@ func (ls *INOLanguageServer) TextDocumentDocumentSymbolReqFromIDE(ctx context.Co
628
628
// Send request to clang
629
629
clangDocSymbols , clangSymbolsInformation , clangErr , err := ls .Clangd .conn .TextDocumentDocumentSymbol (ctx , & clangParams )
630
630
if err != nil {
631
- logger .Logf ("clangd connectiono error: %v" , err )
631
+ logger .Logf ("clangd communication error: %v" , err )
632
632
ls .Close ()
633
633
return nil , nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
634
634
}
@@ -675,7 +675,7 @@ func (ls *INOLanguageServer) TextDocumentCodeActionReqFromIDE(ctx context.Contex
675
675
676
676
cppResp , cppErr , err := ls .Clangd .conn .TextDocumentCodeAction (ctx , & cppParams )
677
677
if err != nil {
678
- logger .Logf ("clangd connectiono error: %v" , err )
678
+ logger .Logf ("clangd communication error: %v" , err )
679
679
ls .Close ()
680
680
return nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
681
681
}
@@ -733,7 +733,7 @@ func (ls *INOLanguageServer) TextDocumentFormattingReqFromIDE(ctx context.Contex
733
733
}
734
734
clangEdits , clangErr , err := ls .Clangd .conn .TextDocumentFormatting (ctx , clangParams )
735
735
if err != nil {
736
- logger .Logf ("clangd connectiono error: %v" , err )
736
+ logger .Logf ("clangd communication error: %v" , err )
737
737
ls .Close ()
738
738
return nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
739
739
}
@@ -786,7 +786,7 @@ func (ls *INOLanguageServer) TextDocumentRangeFormattingReqFromIDE(ctx context.C
786
786
787
787
clangEdits , clangErr , err := ls .Clangd .conn .TextDocumentRangeFormatting (ctx , clangParams )
788
788
if err != nil {
789
- logger .Logf ("clangd connectiono error: %v" , err )
789
+ logger .Logf ("clangd communication error: %v" , err )
790
790
ls .Close ()
791
791
return nil , & jsonrpc.ResponseError {Code : jsonrpc .ErrorCodesInternalError , Message : err .Error ()}
792
792
}
0 commit comments