redhat-developer / redhat-developer/vscode-java
"Find / Peek All references" on a base class doesn't find overwritten invocations
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
When I search for all invocations / references on a method, I would expect that also the invocations will be found if the method was overwritten by another class. These are correct references on this method. But these references are missing in the results, which can lead to missing circumstances.
The other direction, if I search for references for the method on the lower class which overwrites, I see also only the direct invocations, which is correct in this case in my impression (but should also include all invocations of overwrites of this class of course).
The only workaround I found is the call hierarchy, but it is hard to pick all the references out of this representation.
I am not sure if it is a bug, so I marked it as feature request.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are identified in the issue. Start by reproducing reference search in VS Code Java with a base method and an overriding method, then inspect the reference-search and call-hierarchy entry points. Done means searching the base method includes invocations of overrides while searching the lower-class method preserves its direct-reference behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript
- Domain
- developer-experience, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100