redhat-developer / redhat-developer/vscode-java

Hover support for property keys that reference values from a file loaded with java.util.Properties

Open
#2,347 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Current Result
Expected Result

When I import one .properties file
I hope to be able to directly and intelligently prompt the value in the properties file when using the key keyword in the properties file when compiling the content.

object.properties
First.Value=SomeValue

.java file
import java.io.;
import java.util.
;

public class testProperties {
public static void main(String[] args) throws FileNotFoundException, IOException {

    Properties prop = new Properties();
    prop.load(new FileInputStream("C:\\my_code\\object.properties"));
    String someKey = "First.Val";
    String abc = prop.getProperty(someKey);
}

}

I hope when the mouse is placed on the penultimate line of first Val can get relevant information

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

Reproduce the Java example with object.properties and the prop.getProperty call in VS Code, noting the requested hover behavior and the First.Val versus First.Value mismatch. Trace the existing Java hover handling and determine how the loaded properties file could be connected; done means hovering the property key shows its corresponding value.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.