microsoft / microsoft/vscode-cpptools
Duplicate entries in reference panel when using Windows junction
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: Windows 11 Enterprise 25H2
- VS Code Version: 1.137.0
- C/C++ Extension Version: 1.34.4
- If using SSH remote, specify OS of remote machine: N/A
Bug Summary and Steps to Reproduce
Bug Summary:
To workaround the Windows file path limit, I created a directory junction C:\projects that maps to a lengthy directory. I opened my project through this junction directory in another IDE, which generated a compile_commands.json using this junction directory.
When I search for references with the C/C++ plugin, it will show entries for the file in the junction directory as well as via the real path. So, I'm seeing everything duplicated.
Steps to reproduce:
- Create a directory junction.
- Generate a compile_commands.json that uses this directory path.
- Load the folder in VSCode with C/C++ plugin (setup to use this compilation database).
- Search for a reference to something.
Expected behavior: Only one of the junction path or real path is shown. Not both.
Configuration and Logs
N/A
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
Riproduci il problema con una Windows directory junction, un compile_commands.json che utilizza il junction path e la ricerca dei riferimenti nella C/C++ extension. Inizia tracciando il modo in cui l’extension legge i percorsi dalla compilation database e presenta i risultati dei riferimenti; il lavoro è completo quando i riferimenti raggiunti tramite il junction path e il real path compaiono una sola volta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript
- Ambito
- operating-systems, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100