Skip to content

Commit 7066c6f

Browse files
committed
Fix goto_definition range end and add textDocument/definition integration tests
- Fix LspPosition.from_ast_pos_end usage for range end in goto_definition - Add integration test suite with four test scenarios: class members (fields, params, methods), trait-typed receiver (one definition), union-typed receiver (multiple definitions), and cross-file navigation
1 parent a0c2290 commit 7066c6f

File tree

11 files changed

+624
-6
lines changed

11 files changed

+624
-6
lines changed

.release-notes/5123.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Fix goto_definition range end
2+
3+
The `textDocument/definition` response now returns a correct `range.end` position. Previously, it had an off-by-one error in the column value.

0 commit comments

Comments
 (0)