microsoft / microsoft/vscode-cpptools

Call hierarchy for structure member variable should show function names that reference it

Aperta
#11,765 3 commenti 8 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Feature Request Feature: Call Hierarchy Language Service
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Feature Request

It is possible in eclipse to invoke call hierarchy on structure member thus producing following call tree where this member is used:
Screenshot 2023-12-08 at 13 41 17

With vscode however it is not possible as call hierarchy does not work for struct members and only find all references work which is great but not easy to work with because you don't have view of function names where it is used, so it's harder to really understand the code when you don't see self descriptive function names and all the locations where it is used without clicking manually:
Screenshot 2023-12-08 at 14 41 47

Please improve call hierarchy for struct members to do the same as find all references does but also show function name where it is called similar to eclipse. Additionally would be nice to have call tree and to show many matches.

There was a similar request:
https://github.com/microsoft/vscode-cpptools/issues/11037

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

Inizia riproducendo il problema nell’estensione vscode-cpptools usando un membro di struct C/C++, quindi confronta Call Hierarchy con Find All References. Esamina la issue correlata #11037 per la discussione precedente. Il lavoro è completato quando la gerarchia delle chiamate del membro di struct identifica i nomi delle funzioni che lo referenziano e presenta l’albero delle chiamate richiesto e le corrispondenze.

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

Valutazione

Stack tecnologico
cpp, typescript
Ambito
developer-experience, tooling
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.