Wrong project built when clicking Build/Upload icons

I repeatedly experienced PIO building another project when I clicked on the Build or Upload icons in VSCode. Most of the time this were projects where I had opened or copied single source files while working on another (main) project. But occasionally the project built was even one I had never touched at all.

Is there a way to tell PIO to focus on a single project only?

The new extension version has a different project selection mechanism with an explicit selector at the bottom taskbar – if you update the extension to 2.3.0 you will see it. Otherwise it was noted somewhere else that some VSCode API had broken that was used to previously select it.

Yes, the “Default” selector popped up now in the bottom line. Great, so I will use that from now.