Hi everyone,
I’m currently working on a distributed system involving multiple ESP32 nodes (an LCD controller and a Bridge) and I’ve decided to move from separate VSCode instances to a Multi-root Workspace to better coordinate communication protocols and leverage GitHub Copilot’s cross-file context.
My Setup:
-
A
.code-workspacefile containing two folders:folder-lcdandfolder-bridge. -
Each folder has its own valid
platformio.iniwith unique[env]names.
The Issue: In the VSCode blue status bar, I can see the environment switcher and it correctly lists all environments from both projects. However, in the PlatformIO Sidebar (Project Tasks), I only see the project that is currently selected as “Active” in the status bar.
If I switch the project in the status bar, the Sidebar refreshes and shows the tasks for the newly selected project, hiding the previous one.
What I expected: I was hoping to see both projects listed simultaneously in the Project Tasks sidebar, allowing me to run “Upload” for the Bridge and “Monitor” for the LCD without constantly switching the “Active” project in the status bar.
Questions:
-
Is this the intended behavior for Multi-root Workspaces in PlatformIO?
-
Is there a setting to force the Sidebar to display all projects in the workspace at once?
-
What is the best practice for managing multiple interconnected ESP32 devices without having to toggle the active project every time?
Any advice or “pro-tips” from someone managing similar multi-node setups would be greatly appreciated!
My environment:
-
VSCode version: 1.114.0
-
PlatformIO Core: 6.1.19
-
OS: Windows 11
Thanks in advance!