redhat-developer / redhat-developer/vscode-java

"Find / Peek All references" on a base class doesn't find overwritten invocations

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

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

enhancement
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

When I search for all invocations / references on a method, I would expect that also the invocations will be found if the method was overwritten by another class. These are correct references on this method. But these references are missing in the results, which can lead to missing circumstances.

The other direction, if I search for references for the method on the lower class which overwrites, I see also only the direct invocations, which is correct in this case in my impression (but should also include all invocations of overwrites of this class of course).

The only workaround I found is the call hierarchy, but it is hard to pick all the references out of this representation.

I am not sure if it is a bug, so I marked it as feature request.

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

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

はじめの一歩

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

調査の方向性

issue ではファイルもテストも特定されていません。まず、ベースメソッドとオーバーライドメソッドを用いて VS Code Java で参照検索を再現し、その後、参照検索と呼び出し階層のエントリーポイントを調べます。完了条件は、ベースメソッドの検索にオーバーライドの呼び出しが含まれ、一方で下位クラスのメソッドの検索では直接参照の動作が維持されることです。

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

評価

技術スタック
java, typescript
領域
developer-experience, search
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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