I just opened “VS studio code” after a few months of non-use and I discovered the PlatformIO extension was disabled with “This extension has been disabled because it does not support virtual workspaces”
I couldn’t figure out the issue so I removed vs studio code and all extensions (and force deleted directories from filesystem).
I re-installed the VS studio code and re-installed PlatformIO.
Same error “This extension has been disabled because it does not support virtual workspaces.”
C:\Windows\System32> code --list-extensions
ms-vscode.cpptools
platformio.platformio-ide
What are the versions of
- VS-Code
- PlatformIO Core
- PlatformIO Home
?
Obtain VS Code version: menubar “Help” / “About”
Obtain PIO versions: PIO-Home
The issue was I think my use of GitHub - Community-PIO-CH32V/platform-ch32v: PlatformIO platform for CH32V RISC-V chips (CH32V003, CH32V103, CH32V20x, CH32V30x, CH32X035) and CH56x, CH57x, CH58x, CH59x which I believe installs as a virtual workspace.
Somehow (and I’d not done anything since last time I used it) when I launched vscode studio it was reporting for PlatformIO “This extension has been disabled because it does not support virtual workspaces".
I deleted everything but somehow (even after uninstalling everything and removing all directories) when I reinstalled vs studio code (1.103.2) there was a stale open project open in the explorer which was using Community-PIO-CH32V.
However the Community-PIO-CH32V extension wasn’t installed and neither was PlatformIO.
There was an entry in “Explorer” for Platform-CH32V but if I tried to click it I got
“Unable to resolve resource vscode-vfs://github/Community-PIO-CH32V/platform-ch32v”. And it also was preventing PlatformIO from being installed. If I installed it it would report “This extension has been disabled because it does not support virtual workspaces”.
I finally realized this and trashed the open project. Then I was able to install PlatformIO again.
I’ve no clue what caused it to get messed up originally but it seems more likely something to do with the CH32V extension than PlatformIO.
The link you provided does not contain a standalone VS Code extension, but rather a platform for PlatformIO.
I therefore believe that your project (which you had opened) had an incorrect VS Code configuration.
I’m glad you were able to fix the problem.