eclipse-jdt / eclipse-jdt/eclipse.jdt.ui

Make code lenses reference count match result of Call Hierarchy

Open
#303 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
59
Forks
127
Avg merge
22h 47m
Merged PRs (30d)
28

Description

Currently the code lenses seem to match more than `Call Hierarchy` does, which makes the feature quite useless to me in some cases.
Is this intended behavior? Is it not feasible to count via `Call Hierarchy` functionality because of performance issues?

### Method definition with code lens references
This method is referenced / called exactly once in the project, but we get 1537 (potential) matches.

![2022-10-18_17-40](https://user-images.githubusercontent.com/459631/196483651-b432dd31-aba0-43c8-8685-a77e5c269321.png)

### Method Call Hierarchy
![2022-10-18_17-20](https://user-images.githubusercontent.com/459631/196484887-3b6f9158-1df8-4074-9df7-52b107a9a69c.png)

### One of the potential matches from code lens, which is clearly not a reference
The reference is not calling the method on the class Recipient and should not show up in the reference count.

![2022-10-18_18-01](https://user-images.githubusercontent.com/459631/196483717-1aae4391-b998-4c68-ae42-f25757f12c23.png)

### Version
Eclipse Java Development Tools 3.18.1300.v20220831-1800 org.eclipse.jdt.feature.group Eclipse.org

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.