redhat-developer / redhat-developer/vscode-java

Feature Request: Add option to not include references in test classes

Open
#2,019 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

navigation ux
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

When using the Java Code Lens, or finding references to a class, many times I am not interested in any references in test classes. It would be nice to have a way to filter or easily differentiate references from test classes.

Some ideas:

  • Provide an option to filter out references from test classes
  • Have a command to be able to quickly toggle the filtering of references from test classes (since this is a setting that would likely be changed frequently based on current work)
  • In Java Code Lens, show 2 separate references links - one showing the references from prod code and one showing references from test code

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 named. Start by locating the Java Code Lens and class-reference handling in the VS Code extension, then compare the proposed filtering option, toggle command, and separate production/test links. Done should mean selecting and documenting one concrete behavior for excluding or distinguishing references from test classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.