redhat-developer / redhat-developer/vscode-java

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

Aperta
#4,346 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

enhancement
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Nell’issue non sono identificati file o test. Inizia riproducendo la ricerca dei riferimenti in VS Code Java con un metodo di base e un metodo che lo sovrascrive, quindi esamina i punti di ingresso della ricerca dei riferimenti e della gerarchia delle chiamate. Il lavoro è completato quando la ricerca del metodo di base include le invocazioni dei metodi sovrascritti, mentre la ricerca del metodo della classe derivata mantiene il comportamento dei riferimenti diretti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript
Ambito
developer-experience, search
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.