-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Find all references, exclusing test configuration #14530
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
Comments
I have some interest in this and would be willing to spend some time implementing it if it's found acceptable. |
We have something similar for imports already here
So you can likely take inspiration from that to add another config but for test things (though I believe this will be trickier to do properly) |
Hi, @chamons Did you have any chance to find a solution? I struggle with the same issue. |
I'll try working on this @rustbot claim |
I have not found a solution nor time to work on this. |
Thank you @Young-Flash for running this down! I'm super excited for this. ❤️ |
you can try it out at the next nightly release and give some feedback :) |
Uh oh!
There was an error while loading. Please reload this page.
I often want to find the usages of a references, but for some APIs there can be many more usages in test code than elsewhere.
As rust's default is to place test code in the same file, it can be difficult to determine which usages are which without expanding each instance.
In C#, it is relatively simple to work around this by excluding folders or unload test projects.
Would it be possible to add either a new "Find all non-test references", or a project setting to exclude refernces in a test Cfg scope?
The text was updated successfully, but these errors were encountered: