redhat-developer / redhat-developer/vscode-java

"Find / Peek All references" on a base class doesn't find overwritten invocations

Open
#4,346 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.