Intellisense with tasmota SonOff FW

Hi, I’m using vscode with PlatformIO to compile and run tasmota firmware for SonOff devices.

This works fine, but the intellisense does not work at all.
There are many functions which can not be resolved and code blocks are marked as not used, which is not true.