Hello, sorry for late answer I was quite busy to reply just in time …
Thanks for the helpful infos regarding workspace. That is basically also my understanding. One concrete example about my folder structure:
- Path, where all my platformio projects are hosted (I call it my “workspace”)
/home/user/Documents/PlatformIO/Projects - The sub folder contains my projects.
If I’m checking where the ${workspaceFolder} is pointing then it seems that this is for every project. Therefore, I do not understand why there is a separate .vscode folder in each project (which are indeed under one workspace. So I have changed the directory to the root of the project folders which should be the workspace from my point of view.
But only some cached files have been created under .vscode/ipch folder in this location - not the database file itself. So this doesn’t help me but anyway it was worth to look for it.
Maybe I have to live with this approach from VSCode even though I don’t understand why it has to be so. I understand the need for the database file for intellisense but I cannot understand the duplication of a >70MB file for every project if the contents is the same. Bloating up required project size should be avoided by a modern smart IDE.
UPDATE 2019-Mar-30: I 've got the stuff temporarily running as I would expect with the hints given in your previous reply so I changed the c_cpp_properties.json ‘browse’ section for the database file. Unfortunately the changes will be overwritten by whatever tool. The first line in this file has a warning that this file shall NOT be modified - maybe platformio handles this file.
Regards Andreas