Find Usages in Apex class ignores context, always global

Issue #514 resolved
Scott Posey created an issue

If I have a local variable named "id" in an Apex Class method and do a "Find Usages" on it, it will find everything in the project named "id", rather than just the usages for that variable in the context of the method. It would be nice if this could also distinguish static/local usages within a class.

Comments (4)

  1. Scott Wells repo owner

    Can you provide an example where this happens? It should only be finding actual usages of that particular declaration.

  2. Scott Wells repo owner

    This was easy to reproduce. I'll look into it in a near-term update. Not sure why it's doing that since it should only be using actual references tagged in usages.

  3. Scott Posey reporter

    I have updated the version to 2.0.1.2, this is still happening for local variable and method parameters.

  4. Scott Wells repo owner

    Issue tracker grooming. If this is still happening, please feel free to reopen, ideally with a concrete reproduction scenario.

  5. Log in to comment