microsoft / microsoft/vscode-cpptools
Add possibility to exclude files from parser but not from file list in Workspace.
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Feature Request
📄 Brief introduction
I'm working in c code-generation for that reason I have files in format *.c with invalid proprietary language to enable/disable specific section of code from another configuration file. Also I have the testing environment in the same workspace.
I would like to know if there is any way to exclude specific files/folders using glob patterns but not hiding them from workspace (only to the parse ignore or hide problems in file). I tried with:
"files.readonlyInclude": {
"*/oneFolder/anotherFolder/**": true
},
"C_Cpp.codeAnalysis.exclude": {
"*/oneFolder/anotherFolder/**": true
},
"C_Cpp.files.exclude": {
"*/oneFolder/anotherFolder/**": true
},
"search.exclude": {
"*/oneFolder/anotherFolder/**": true
},
"files.exclude": {
"*/oneFolder/anotherFolder/**": true
}
Last one could work but it will hide my files from workspace and I want to keep them.
⚙ Use case
To consult files and not having errors in problems section when the file is expected to have a wrong format (in this case a code-generated c source). For example:
🛠 Possible solution
A setting similar to C_Cpp.files.exclude or to files.exclude which won't report any kind of "problem" related to parser or wrong syntax.
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 tracciando in che modo C_Cpp.files.exclude, C_Cpp.codeAnalysis.exclude e files.exclude influiscono sulla visibilità dell’area di lavoro, sul parsing e sui problemi segnalati. La modifica è completa quando un’impostazione basata su glob può sopprimere i problemi del parser o di sintassi per i file corrispondenti, mantenendo al contempo tali file visibili nell’area di lavoro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, cpp
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100