redhat-developer / redhat-developer/vscode-java

In lightweight mode, take module restrictions into account

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

Nobody has claimed this yet.

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

Description

See Steps To Reproduce: the hover shows the documentation for an internal class. In lightweight mode, only classes in packages which are exported from java.base should be considered.

Environment
  • Operating System: Windows 11
  • JDK version: 17.0.2
  • Visual Studio Code version: 1.65.2
  • Java extension version: 1.4.0
Steps To Reproduce

I have the following code:

import org.springframework.beans.factory.annotation.Value;

public class Foo {
    @Value("${foo.bar}")
    private String fooBar;
}
Current Result

image

Expected Result

No pop-up is shown.

Additional Informations

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

Start with the reported Steps To Reproduce in lightweight mode and inspect how the Java extension determines which classes are available for hover documentation. Done means internal classes that are not exported from java.base no longer produce a hover, while exported packages remain considered.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.