Question to Seeed: Why is the bug that analogRead (PIN_VBAT) does not work in mbed 2.9.1 for XIAO_nRF52840 not resolved?

Not sure if this is what your after , It did work when I tried it, Also I use Platformio and have no issues compiling or downloading or even Debugging with the jlink all works.
I do recall it using a check-mark or option for the VScode to use the same Library. but env, board, pins etc. is in the INI.
https://medium.com/@alwint3r/working-with-seeed-xiao-ble-sense-and-platformio-ide-5c4da3ab42a3
HTH
GL :slight_smile: