microsoft / microsoft/vscode-cpptools-api
Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json`
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 33
- Forks
- 20
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello,
currently only folders can be specified in browse.path and includePath.
This leads to issues in bigger projects that contain smaller sub-projects.
project
├───common_include
│ ├───foo.h
│ └───bar.h
├───target_include
│ ├───foo.h
│ └───bar.h
└───main.c
As an example, here only common_include/foo.h and target_include/bar.h are required but as only folders can be defined via browse.path and includePath both */foo.h and */bar.h files will be parsed.
This may be solved by using compile_commands.json files however this is not possible in my case.
I know all the correct files that should be used in IntelliSense however I'm unable to define them as these
browse.path: Path is not a directory: c:\path\to\common_include\foo.h
includePath: Path is not a directory: c:\path\to\target_include\bar.h
errors are raised while entering specific files (applies to both .h and .c files).
At the same time forcedInclude allows to define specific files that should be included.
Would it be possible to allow specific files to also be defined in the other settings in the c_cpp_properties.json file and by a custom provider?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den Einstellungen includePath und browse.path in c_cpp_properties.json, inspiziere dann den Einstiegspunkt des custom provider und vergleiche deren Pfadbehandlung mit forcedInclude. Fertig ist die Aufgabe, wenn bestimmte .c- und .h-Pfade aus beiden Konfigurationsquellen ohne Verzeichnisfehler akzeptiert werden und nur die angeforderten Dateien geparst werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, cpp
- Bereich
- devtools, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100