For that I believe you could use textDocument/references:
https://microsoft.github.io/language-server-protocol/specifi...
Yes, but that one is position-based rather than name-based - I believe it's basically for an editor to ask about whatever is under the cursor.
Yes, but that one is position-based rather than name-based - I believe it's basically for an editor to ask about whatever is under the cursor.