@@ -365,7 +365,7 @@ func (ls *INOLanguageServer) TextDocumentHoverReqFromIDE(ctx context.Context, lo
365365 }
366366 clangResp, clangErr, err := ls.Clangd.conn.TextDocumentHover(ctx, clangParams)
367367 if err != nil {
368- logger.Logf("clangd connectiono error: %v", err)
368+ logger.Logf("clangd communication error: %v", err)
369369 ls.Close()
370370 return nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
371371 }
@@ -418,7 +418,7 @@ func (ls *INOLanguageServer) TextDocumentSignatureHelpReqFromIDE(ctx context.Con
418418 cppParams.TextDocumentPositionParams = cppTextDocumentPosition
419419 cppSignatureHelp, cppErr, err := ls.Clangd.conn.TextDocumentSignatureHelp(ctx, inoParams)
420420 if err != nil {
421- logger.Logf("clangd connectiono error: %v", err)
421+ logger.Logf("clangd communication error: %v", err)
422422 ls.Close()
423423 return nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
424424 }
@@ -450,7 +450,7 @@ func (ls *INOLanguageServer) TextDocumentDefinitionReqFromIDE(ctx context.Contex
450450 cppParams.TextDocumentPositionParams = cppTextDocPosition
451451 cppLocations, cppLocationLinks, cppErr, err := ls.Clangd.conn.TextDocumentDefinition(ctx, &cppParams)
452452 if err != nil {
453- logger.Logf("clangd connectiono error: %v", err)
453+ logger.Logf("clangd communication error: %v", err)
454454 ls.Close()
455455 return nil, nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
456456 }
@@ -497,7 +497,7 @@ func (ls *INOLanguageServer) TextDocumentTypeDefinitionReqFromIDE(ctx context.Co
497497 cppParams.TextDocumentPositionParams = cppTextDocumentPosition
498498 cppLocations, cppLocationLinks, cppErr, err := ls.Clangd.conn.TextDocumentTypeDefinition(ctx, &cppParams)
499499 if err != nil {
500- logger.Logf("clangd connectiono error: %v", err)
500+ logger.Logf("clangd communication error: %v", err)
501501 ls.Close()
502502 return nil, nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
503503 }
@@ -541,7 +541,7 @@ func (ls *INOLanguageServer) TextDocumentImplementationReqFromIDE(ctx context.Co
541541 cppParams.TextDocumentPositionParams = cppTextDocumentPosition
542542 cppLocations, cppLocationLinks, cppErr, err := ls.Clangd.conn.TextDocumentImplementation(ctx, &cppParams)
543543 if err != nil {
544- logger.Logf("clangd connectiono error: %v", err)
544+ logger.Logf("clangd communication error: %v", err)
545545 ls.Close()
546546 return nil, nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
547547 }
@@ -582,7 +582,7 @@ func (ls *INOLanguageServer) TextDocumentDocumentHighlightReqFromIDE(ctx context
582582 clangParams.TextDocumentPositionParams = clangTextDocumentPosition
583583 clangHighlights, clangErr, err := ls.Clangd.conn.TextDocumentDocumentHighlight(ctx, &clangParams)
584584 if err != nil {
585- logger.Logf("clangd connectiono ERROR: %v", err)
585+ logger.Logf("clangd communication ERROR: %v", err)
586586 ls.Close()
587587 return nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
588588 }
@@ -628,7 +628,7 @@ func (ls *INOLanguageServer) TextDocumentDocumentSymbolReqFromIDE(ctx context.Co
628628 // Send request to clang
629629 clangDocSymbols, clangSymbolsInformation, clangErr, err := ls.Clangd.conn.TextDocumentDocumentSymbol(ctx, &clangParams)
630630 if err != nil {
631- logger.Logf("clangd connectiono error: %v", err)
631+ logger.Logf("clangd communication error: %v", err)
632632 ls.Close()
633633 return nil, nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
634634 }
@@ -675,7 +675,7 @@ func (ls *INOLanguageServer) TextDocumentCodeActionReqFromIDE(ctx context.Contex
675675
676676 cppResp, cppErr, err := ls.Clangd.conn.TextDocumentCodeAction(ctx, &cppParams)
677677 if err != nil {
678- logger.Logf("clangd connectiono error: %v", err)
678+ logger.Logf("clangd communication error: %v", err)
679679 ls.Close()
680680 return nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
681681 }
@@ -733,7 +733,7 @@ func (ls *INOLanguageServer) TextDocumentFormattingReqFromIDE(ctx context.Contex
733733 }
734734 clangEdits, clangErr, err := ls.Clangd.conn.TextDocumentFormatting(ctx, clangParams)
735735 if err != nil {
736- logger.Logf("clangd connectiono error: %v", err)
736+ logger.Logf("clangd communication error: %v", err)
737737 ls.Close()
738738 return nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
739739 }
@@ -786,7 +786,7 @@ func (ls *INOLanguageServer) TextDocumentRangeFormattingReqFromIDE(ctx context.C
786786
787787 clangEdits, clangErr, err := ls.Clangd.conn.TextDocumentRangeFormatting(ctx, clangParams)
788788 if err != nil {
789- logger.Logf("clangd connectiono error: %v", err)
789+ logger.Logf("clangd communication error: %v", err)
790790 ls.Close()
791791 return nil, &jsonrpc.ResponseError{Code: jsonrpc.ErrorCodesInternalError, Message: err.Error()}
792792 }
0 commit comments