microsoft / microsoft/vscode-cpptools-api
Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json`
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 33
- Forks
- 20
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con las configuraciones includePath y browse.path de c_cpp_properties.json, después inspecciona el punto de entrada del custom provider y compara su gestión de rutas con forcedInclude. La tarea estará terminada cuando se acepten rutas .c y .h específicas de ambas fuentes de configuración sin errores de directorio y solo se analicen los archivos solicitados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- c, cpp
- Área
- devtools, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100