-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go to position where a symbol entered the namespace #1255
Comments
Wouldn't the hover action tell you this? Doesn't seem like a job for "go to definition" at least. |
I guess my expectation just came from the fact that my python LS had the described behavior. But I tested in rust and there it seems to behave as in LS.jl. In view of that and the fact that many others are probably already used to the current behavior, I'll close this issue. "Go to references" does the job for me. |
FWIW, the LSP also defines the textDocument/declaration request, which could maybe do this? |
Yes, at least my python language server jumps to the associated |
I'm also not sure how e.g. VS Code shows "Go to definition" and "Go to declaration" or how the user would interact with them, FWIW. |
When using the go-to-definition feature, the current behavior jumps to the method definition that potentially resides in another module; potentially even in another package. Instead, what I usually want is to know "where did this symbol enter my namespace"? To answer this question, it would be convenient if "go-to-definition" jumped to the associated
using
orimport
statement that brought the symbol into scope.Example:
The text was updated successfully, but these errors were encountered: