Closed murshex closed 1 year ago
After commenting these two lines, intellisense works in all source files, but intellisense still has problems in the pch file.
If I manually add the pch file to the compile_commands.json like this, intellisense in the pch file works correctly.
I disabled it because I didn't have time before to test if it worked on all compilers and LSPs.
I think even with pch disabled, it should fallback to using the -Ixxx
to find headers if you include pre-compiled headers in the source code. It should also work.
Okay thanks… I’ll do that!
Xmake Version
2.7.3
Operating System Version and Architecture
All
Describe Bug
I noticed these two lines in "plugins/project/clang/compile_commands.lua".
After removing these lines, vscode intellisense is working again for precompiled headers.
Is there any reason that precompiled headers are disabled for compile_commands?
Expected Behavior
working vscode intellisense
Project Configuration
No response
Additional Information and Error Logs
No response