You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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.
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).
The text was updated successfully, but these errors were encountered: