-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Way to hide imports on "Find all references" ? #13184
Comments
No, there isn't. |
Looks like I made it. src/references.rs/find_all_refs
Dont mind on naming. Is my idea on filtering like that okay? I wanna do PR |
There is no need to use the text range to look up with, the references contain the syntax node that matches so you just have to traverse the tree upwards from the node to check if its an ident of a use path. |
If they do, this could be much simpler. .
only FileId and Range. |
I don't follow what you mean here |
I mean no. It do not |
But they do? https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/search.rs#L55-L63 contains an Oh I see, you are trying to filter out too late, you'll need to filter in the |
@Veykril Yep I didnt show a whole code. My fault. You are right. Thank you for the suggestion. That variety of types, transformations confused me |
Filter imports on find-all-references Attempt to #13184
Sorry for this question in issues, but may be there is a config option or so?
The text was updated successfully, but these errors were encountered: