@@ -361,7 +361,6 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
361361
362362 case * lsp.CompletionParams :
363363 // method: "textDocument/completion"
364- inoURI = p .TextDocument .URI
365364 log .Printf ("--> completion(%s:%d:%d)\n " , p .TextDocument .URI , p .Position .Line , p .Position .Character )
366365
367366 if res , e := handler .ino2cppTextDocumentPositionParams (& p .TextDocumentPositionParams ); e == nil {
@@ -370,6 +369,7 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
370369 } else {
371370 err = e
372371 }
372+ inoURI = p .TextDocument .URI
373373
374374 case * lsp.CodeActionParams :
375375 // method "textDocument/codeAction"
@@ -391,7 +391,6 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
391391
392392 case * lsp.HoverParams :
393393 // method: "textDocument/hover"
394- inoURI = p .TextDocument .URI
395394 doc := & p .TextDocumentPositionParams
396395 log .Printf ("--> hover(%s:%d:%d)\n " , doc .TextDocument .URI , doc .Position .Line , doc .Position .Character )
397396
@@ -401,6 +400,7 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
401400 } else {
402401 err = e
403402 }
403+ inoURI = p .TextDocument .URI
404404
405405 case * lsp.DocumentSymbolParams :
406406 // method "textDocument/documentSymbol"
@@ -1259,7 +1259,7 @@ func (handler *InoHandler) transformClangdResult(method string, inoURI, cppURI l
12591259 }
12601260 }
12611261 r .Items = newItems
1262- log .Printf ("<-- completion(%d items)" , len (r .Items ))
1262+ log .Printf ("<-- completion(%d items) cppToIno=%v " , len (r .Items ), cppToIno )
12631263 return r
12641264
12651265 case * lsp.DocumentSymbolArrayOrSymbolInformationArray :
0 commit comments