microsoft / microsoft/vscode-cpptools
`Go to References` always reparses a lot of files for the same symbol
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Environment
- OS and Version: macOS Sequoia 15.2
- VS Code Version: 1.96.2 (Universal)
- C/C++ Extension Version: 1.22.11
- If using SSH remote, specify OS of remote machine: Ubuntu 22.04.4 LTS
Bug Summary and Steps to Reproduce
Bug Summary:
I am using VS Code on my macOS to SSH remotely browse Linux Kernel code which I cloned on a Ubuntu Linux machine. When I click Go to References on a symbol, I see a lot of files need to be parsed (like the below) which takes ~10 mins. And next time when I click Go to References on the same symbol again, all those files will be parsed again! So every time it takes ~10 mins to show the references for the same symbol.
Go to Definition doesn't seem to have this problem.
Expected behavior:
I'd expect all the files in the project to be parsed at the very beginning (i.e. when I open the project for the first time) and cache the result somewhere. Reparsing should only be done when there is some code changes.
Configuration and Logs
There is no `c_cpp_properties.json` file in `~/.vscode-server/` on my Ubuntu machine.
Other Extensions
No response
Additional context
No response
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo ricerche ripetute di Go to References nell’area di lavoro remota di Linux Kernel e confrontale con Go to Definition. Traccia quali file vengono analizzati nuovamente tra ricerche identiche; il lavoro è completato quando i file non modificati non vengono analizzati nuovamente e le ricerche ripetute dei riferimenti terminano senza il ritardo segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript, vscode
- Ambito
- developer-experience, performance, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100