Skip to content

Commit 9924544

Browse files
committed
Fixed textDocument/hover response range coordinates
Fix #68
1 parent 19cbd82 commit 9924544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: handler/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -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"

0 commit comments

Comments
 (0)