This might be a vscode issue, just wanted to ask any workarounds or am I missing something here. I wasn't able to find any similar issue filed anywhere.
Notice the targetSelectionRange is upto L11C15. When cursor is at L11C16 or C >= 16 the text definition request (Cmd + click) highlights the document correctly, but if I place cursor C <= 15 the definition request returns No references found for ...
Posting recording, here I have hardcoded the targetSelectionRange and targetRange to the above mentioned values, and I try with multiple cursor positions, when the cursor is within the targetSelectionRange Go-to-definition does not work, although the textDocument/definition response is being sent correctly to the vscode client from the debug logs (not shown in video):
Description
This might be a vscode issue, just wanted to ask any workarounds or am I missing something here. I wasn't able to find any similar issue filed anywhere.
I have a
textDocument/definition
request as such:Notice the
targetSelectionRange
is uptoL11C15
. When cursor is atL11C16
orC >= 16
the text definition request (Cmd
+click
) highlights the document correctly, but if I place cursorC <= 15
the definition request returnsNo references found for ...
Posting recording, here I have hardcoded the
targetSelectionRange
andtargetRange
to the above mentioned values, and I try with multiple cursor positions, when the cursor is within thetargetSelectionRange
Go-to-definition does not work, although thetextDocument/definition
response is being sent correctly to the vscode client from the debug logs (not shown in video):https://github.com/user-attachments/assets/043e6673-461e-44ad-9d64-a618f3dc9e6f