redhat-developer / redhat-developer/vscode-java
Hover support for property keys that reference values from a file loaded with java.util.Properties
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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