Skip to content
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

Feature request: Find where a record field is used vs where it's assigned #789

Open
jfmengels opened this issue Jun 29, 2022 · 1 comment

Comments

@jfmengels
Copy link
Contributor

When I look at the usages of a record field, I'm being shown all the places where this record is used and assigned.

But very often, I only care about one or the other: where it is used, OR where it is assigned a value.

For instance, when I have a field that is used 100+ times but only assigned 3 times, then finding those assignments become hard to find, especially if you have lines like , field = item.field where the value is used but assigned to the field of a different record type.

Suggestion

My initial suggestion would be to add new buttons to the "Show usages" modal, one to filter out usages and one to filter out assignments.

Notes

Maybe this already exists but I could not find it at all.

I don't know if this is possible at all. Maybe there's a limitation of IntelliJ in the "Show usages" feature.
If there is such a limitation, then potentially this could be a separate window (and would involve a lot more work obviously).

@KasMA1990
Copy link
Contributor

When you're finding usages in IDEA, it already allows you to only see read or write usages. But the Elm plugin does not seem to support this at the moment.
Screenshot 2022-08-03 at 10 00 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants