You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then if I have my cursor at the assignment of x, then textDocument/references works as expected. However, if the cursor is at either of the two uses of x, textDocument/references does not work at all.
I think it makes sense to also have textDocument/references work when using it with the cursor on either use of x---this is the behavior I see from some other language servers.
However, I cannot find anything in the protocol about what exactly it ought to return. I have seen at least one server return references while excluding the initial assignment, while others do not exclude the initial assignment. I'm also unsure whether to include the reference at the cursor in the list of returned references, though I would personally prefer to include it.
The text was updated successfully, but these errors were encountered:
If I have
then if I have my cursor at the assignment of
x
, thentextDocument/references
works as expected. However, if the cursor is at either of the two uses of x,textDocument/references
does not work at all.I think it makes sense to also have
textDocument/references
work when using it with the cursor on either use ofx
---this is the behavior I see from some other language servers.However, I cannot find anything in the protocol about what exactly it ought to return. I have seen at least one server return references while excluding the initial assignment, while others do not exclude the initial assignment. I'm also unsure whether to include the reference at the cursor in the list of returned references, though I would personally prefer to include it.
The text was updated successfully, but these errors were encountered: