@@ -361,7 +361,6 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
361
361
362
362
case * lsp.CompletionParams :
363
363
// method: "textDocument/completion"
364
- inoURI = p .TextDocument .URI
365
364
log .Printf ("--> completion(%s:%d:%d)\n " , p .TextDocument .URI , p .Position .Line , p .Position .Character )
366
365
367
366
if res , e := handler .ino2cppTextDocumentPositionParams (& p .TextDocumentPositionParams ); e == nil {
@@ -370,6 +369,7 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
370
369
} else {
371
370
err = e
372
371
}
372
+ inoURI = p .TextDocument .URI
373
373
374
374
case * lsp.CodeActionParams :
375
375
// method "textDocument/codeAction"
@@ -391,7 +391,6 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
391
391
392
392
case * lsp.HoverParams :
393
393
// method: "textDocument/hover"
394
- inoURI = p .TextDocument .URI
395
394
doc := & p .TextDocumentPositionParams
396
395
log .Printf ("--> hover(%s:%d:%d)\n " , doc .TextDocument .URI , doc .Position .Line , doc .Position .Character )
397
396
@@ -401,6 +400,7 @@ func (handler *InoHandler) HandleMessageFromIDE(ctx context.Context, conn *jsonr
401
400
} else {
402
401
err = e
403
402
}
403
+ inoURI = p .TextDocument .URI
404
404
405
405
case * lsp.DocumentSymbolParams :
406
406
// method "textDocument/documentSymbol"
@@ -1259,7 +1259,7 @@ func (handler *InoHandler) transformClangdResult(method string, inoURI, cppURI l
1259
1259
}
1260
1260
}
1261
1261
r .Items = newItems
1262
- log .Printf ("<-- completion(%d items)" , len (r .Items ))
1262
+ log .Printf ("<-- completion(%d items) cppToIno=%v " , len (r .Items ), cppToIno )
1263
1263
return r
1264
1264
1265
1265
case * lsp.DocumentSymbolArrayOrSymbolInformationArray :
0 commit comments