Replies: 1 comment 1 reply
-
The compile_commands.json only has info on source files. For our global symbol search to work, we may also need to tag parse header files. When you open a source file, IntelliSense only processes the files in the TU. You can possibly try setting C_Cpp.files.exclude to exclude other directories you don't want to tag parse. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If a project has hundreds of thousands of source code files, generated compile_commands.json, where compile_commands.json uses only a few dozen source file code, then is intellisense necessary to retrieve all the files in the working folder? I think this is the main reason for wasting system resources and causing it to crash. And I didn't find the option in the settings to do intellisense analysis only on the source code in compile_commands.json. Since the project is exported compile_commands.json files, is it necessary to analyze the source files in a working directory other than compile_commands.json? Doesn't this lead to extreme waste of system resources, greatly increasing the probability of cpptools going wrong?
Beta Was this translation helpful? Give feedback.
All reactions