fix: make goto def/refs work when cursor is at end of symbol (#1038)#1087
fix: make goto def/refs work when cursor is at end of symbol (#1038)#1087shinohara-rin wants to merge 4 commits intoelixir-lsp:masterfrom
Conversation
…end of symbol (elixir-lsp#1038) Co-authored-by: Cocoa <i@uwucocoa.moe>
|
There are other places where |
|
Hi @lukaszsamson, we've wrapped We temporarily placed it in Other than that, we were also writing some tests for this PR but we had some issue when testing it using |
|
How about |
This PR addresses issue #1038.
This pull request presents a fairly basic approach that relies on retrying with the character to the left of the original one if the first attempt to retrieve definitions/references fails.
Additionally, this PR considers the scenario highlighted in issue #1027, where if the cursor is positioned on the
.right to a symbol, it references the function instead of the module. With the changes in this PR, it will reference the module instead.Below is a video demonstrating the resolution of the issues specified in issue #1027.
output.mp4