-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclusions aren't applied to the first directory found for each browse.path entry #10205
Comments
Our extension doesn't look at the search.exclude feature, because we consider that setting to only apply to VS Code's search. You should set C_Cpp.files.exclude instead. |
Can you set C_Cpp.loggingLevel to "Debug" and look at the "C/C++" logging to see which folder are being processed, e.g.
|
Thanks for the hints. I enabled the debug mode. here is the output: ` ` I tried to disable them via "C_Cpp.files.exclude" and "C_Cpp.codeAnalysis.exclude" ---> "/Library/Developer/CommandLineTools/SDKs/*":true |
It appears to be a bug. The files.exclude is not applied to the root folder if it's in the browse.path. You can work around this bug via setting |
But if you have "C_Cpp.exclusionPolicy": "checkFilesAndFolders" set already, then I'm not sure why the exclusion wouldn't be working (it works for me). You could potentially set |
The fix is available with 1.14.0 (pre-release): https://github.com/microsoft/vscode-cpptools/releases/tag/v1.14.0 |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
I created a workspace with many folder. Inside each folder there exists many files.
I build this settings.json:
{
"files.associations": {
"memory": "c",
"variant": "c"
},
"search.exclude": {
"/firmware": true,
"/cellular" : true,
"/common":true,
"/embedded_headers" : true,
"/output" : true,
"/platform_sw":true,
},
"files.exclude": {
"/*.unt": true,
"/*.c":false,
},
"C_Cpp.exclusionPolicy": "checkFilesAndFolders",
"C_Cpp.intelliSenseEngine": "Default",
}
the "search.exclude" entry contains all folder in the project.
Steps to reproduce:
see above.
I also reset the IntelliSense DB.
Expected behavior
When I reset IntelliSense DB, I still see its progress as multiple files. I expected no files to be included since all folders where added in the search exclude entry.
I expected that IntelliSense wouldn't find any function declaration, when I right click on a function and press "go to definition"
Code sample and Logs
c_cpp_properties.json doesn't exist in my project.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: