Struggling to get stable Intellisense behaviours #1342
Description
I have been using VSCode Arduino (and prior to 2020 VSCode with PlatformIO) to write both commercial libraries and application code for clients for a couple years. As a user of Visual Studio for decades I appreciate the virtues of Intellisense.
I recently started experiencing problems with bool (true, false) and sized int types (uint8_t, uint16_t) generating Intellisense undefines (red-squiggles), which creates a cascade of errors. The number of Intellisense issues reported necessitates either turning Intellisense off or falling back to the Tag Parser (the limited capability of the Tag Parser is better than nothing).
Right now a C file in my current project, that builds without issues, Intellisense generating 199 "Problems". In that same file, the code snippet below on line 2 indicates identifier "uint8_t" is undefined.
uint8_t myProblem;
In the .INO file, references to #defines in a .h file in the {workspace} folder toggle randomly between errors and not errors (all while mouse-over shows the correct value).
In the past, I have added <stdint.h> and <stdbool.h>. I know that has been discouraged in this forum, currently I have only specified <stdint.h> in a Segger non-Arduino C library I use frequently that will not build without it.
Is there any solid advice on the steps to get Intellisense functional in multi-file, multi-library projects?
Thanks,
Greg