Title: Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json` · Issue #73 · microsoft/vscode-cpptools-api · GitHub
Open Graph Title: Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json` · Issue #73 · microsoft/vscode-cpptools-api
X Title: Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json` · Issue #73 · microsoft/vscode-cpptools-api
Description: 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 │...
Open Graph Description: 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 │ └─...
X Description: 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 │ └─...
Opengraph URL: https://github.com/microsoft/vscode-cpptools-api/issues/73
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow specific file paths in `includePath` and `browse.path` from a custom provider and `c_cpp_properties.json`","articleBody":"Hello,\ncurrently only folders can be specified in `browse.path` and `includePath`.\nThis leads to issues in bigger projects that contain smaller sub-projects.\n```\nproject\n├───common_include\n│ ├───foo.h\n│ └───bar.h\n├───target_include\n│ ├───foo.h\n│ └───bar.h\n└───main.c\n```\nAs 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.\n\nThis may be solved by using `compile_commands.json` files however this is not possible in my case.\nI know all the correct files that should be used in IntelliSense however I'm unable to define them as these\n```\nbrowse.path: Path is not a directory: c:\\path\\to\\common_include\\foo.h\nincludePath: Path is not a directory: c:\\path\\to\\target_include\\bar.h\n```\nerrors are raised while entering specific files (applies to both .h and .c files).\n\nAt the same time `forcedInclude` **allows** to define specific files that should be included.\n\nWould 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?","author":{"url":"https://github.com/icebox-test","@type":"Person","name":"icebox-test"},"datePublished":"2025-09-04T05:46:25Z","url":"https://github.com/microsoft/vscode-cpptools-api/issues/73"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:33cacba2-bcbe-df0b-15b8-2ee4900ffc3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDCE:363D8E:1155244:16285EC:6B0104A9 |
| html-safe-nonce | 69e12401a3f763b6364944e8d2f7e10d8da3ceb9e5c55347a9eb1be9035a0b10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRENFOjM2M0Q4RToxMTU1MjQ0OjE2Mjg1RUM6NkIwMTA0QTkiLCJ2aXNpdG9yX2lkIjoiNzMzNjIyNTIzODExMzk4ODI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17b9092884fdb6b91072818c2bf4919111cd74e0fc0e0a9f5fa6a692054d2587 |
| hovercard-subject-tag | issue:3382241453 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-cpptools-api/73/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2312d8f1e6f0bcb0b49f314374bd269a239e8ab76f15c91110dc5bd5804d4dd3/microsoft/vscode-cpptools-api/issues/73 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2312d8f1e6f0bcb0b49f314374bd269a239e8ab76f15c91110dc5bd5804d4dd3/microsoft/vscode-cpptools-api/issues/73 |
| og:image:alt | 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 │ └─... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | icebox-test |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-cpptools-api git https://github.com/microsoft/vscode-cpptools-api.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 133980178 |
| octolytics-dimension-repository_nwo | microsoft/vscode-cpptools-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 133980178 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-cpptools-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width