Feature Request: Improved "Find Usages" functionality for SObject fields and Apex variables

Issue #1790 duplicate
Jason Clark created an issue

After performing “Find Usages” (I’m specifically addressing ‘Find Usages’ for SObject fields and Apex variables), the results panel presented by IntelliJ offers toggle-able buttons:

  • Show Read Access
  • Show Write Access
  • Show Imports

These buttons have no effect on the Apex Usages. I don’t think “Show Imports” has any meaning for Apex, but Write Access implies use as an LValue, and Read Access could be any other use. This could be useful, for example, when searching a code base for places that a field is changed (assigned).

On the same results panel, there is an option to Group results by a number of axes, one of which is Usage Type; all Apex Usages are grouped as “Unclassified”; presumably this corresponds to Read/Write/Import access above.

Another grouping option is “Test/Production”; which currently appears to treat all found usages as Production. Since Apex test classes are labeled as such, this would be another very useful enhancement. Turning off “Test” and “Read” usage output would immediately show only the places where a value is changed in real code.

Comments (2)

  1. Scott Wells repo owner

    This is a duplicate of an existing issue, though I don’t know the number right now. I’ll rationalize and merge after I make the current issue tracker grooming pass.

  2. Log in to comment