To answer my question in case someone need help,
go to PlatformIO extension in VScode under “project tasks” → <project_name> ->Miscellaneous-> Rebuild IntelliSense Index
do this after changing the SDKconfig using menuconfig cmd (run menuconfig)
1 Like