redhat-developer / redhat-developer/vscode-java

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

オープン
#2,347 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement hover
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

object.properties と prop.getProperty 呼び出しを含む Java の例を VS Code で再現し、要求されているホバー動作と First.Val と First.Value の不一致を確認します。既存の Java のホバー処理を追跡し、読み込まれた properties ファイルをどのように接続できるかを判断します。プロパティキーにカーソルを合わせると対応する値が表示されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
developer-experience, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。