redhat-developer / redhat-developer/vscode-java
Hover support for property keys that reference values from a file loaded with java.util.Properties
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 VS Code 中使用 object.properties 和 prop.getProperty 调用复现 Java 示例,同时注意所请求的悬停行为以及 First.Val 与 First.Value 之间的不匹配。跟踪现有的 Java 悬停处理,并确定如何连接已加载的 properties 文件;当悬停在属性键上时显示其对应值,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100