Find Usages in Apex class ignores context, always global
Issue #514
resolved
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)
-
repo owner -
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.
-
reporter - changed version to 2.0.1.2
I have updated the version to 2.0.1.2, this is still happening for local variable and method parameters.
-
repo owner - changed status to resolved
Issue tracker grooming. If this is still happening, please feel free to reopen, ideally with a concrete reproduction scenario.
- Log in to comment
Can you provide an example where this happens? It should only be finding actual usages of that particular declaration.