Platformio.ini not reparsed on external changes

I think I have found a small bug. When I switch in my repository to another branch which has different platformio.ini file, PlatformIO seems to ignore the changes. I’ve noticed it by not offering a default build environment at the bottom of the Visual Studio window. I have only one environment in one branch and multiple environments in another one, so I think it can be easily reproduced.

I don’t know if it’s only build environments issue, or the platformio.ini file is not reparsed at all. Please check.

Just to double check this setting is on?

You mean Visual Studio Code right?

Yes, Auto Rebuild Autocomplete Index is on, and yes, I meant Visual Studio Code.

Then there might be a problem with the extension auto-detecting changes on branch change. Please file bugs in Issues · platformio/platformio-vscode-ide · GitHub.