Replies: 1 comment 5 replies
-
Setting C_Cpp.intelliSenseEngine to "Disabled" in the workspace configuration fixes the problem, but also disables intellisense. TBH, being able to type code in near real time is more important to me than being told the signatures I already know, (or have nothing to do with the processor architecture being worked on). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running PlatformIO on OSX with about 4 projects, all small perhaps 10 files in each. When I save a 1 byte change to a cpp or h file cpptools kicks of for about 15m running at 80% - 100% CPU with the Fans at full RPM. A build of one of these projects from scratch takes about 120s. I know cpptools needs to do more than a build but the activity and fans are continuous so I started to look at what it does.
If I monitor the files cpptools is opening (watching open files in Activity Monitor), it does a full scan of my entire hard disk on every build. It looks like it is searching for c or header files and since I have a large Brew Cellar tree in /usr/local it finds a lot of files, none of which have anything to do with VSCode or the project I am working on.
Is there a way of stopping cpptools from scanning my entire disk and limiting itself to the files it should be considering ?
I did notice that PlatformIO appends an empty string, ie "" to the include path in c_cpp_properties.json which could be related ?
I've searched high and low for a solution in discussions, git issues and generally but nothing seems to make any difference.
Update:
Patching the template used in PlatformIO to generate the c_cpp_properties.json removing the trailing "" on include makes no difference. cpptools continues to scan the entire disk.
Deleting the sqllite databases in ~/Library/Application Support/Code/User/workspaceStorage//ms-vscode.cpptools/** doesn't change the behaviour.
PlatformIO is uptodate, so I suspect this behaviour might be by design for cpptools, but honestly, its not right.
Beta Was this translation helpful? Give feedback.
All reactions