Switch Container option not working after reinstall (WSL + Dev Containers)

Hey, thanks for the detailed report and the logs.

From the logs, the key difference is clear: in WSL the search finds both files, but inside the running container it finds 0. Most likely the .devcontainer folder isn’t mounted inside your container.

The Anysphere Dev Containers extension needs the .devcontainer directory to be accessible from the running container for the “Switch Container” feature to work. Could you please check:

  1. What does workspaceFolder look like in your devcontainer.json files? Does it point to the project root (where .devcontainer/ lives) or to a subfolder?
  2. Inside the running container, can you confirm that .devcontainer/ is actually present? Run ls -la at the workspace root from the container terminal.

If workspaceFolder points to a location that doesn’t include .devcontainer/, you may need to adjust the mount so that directory is available inside the container. Related discussion with the same root cause: Anyspheres Dev Container Extension: Switch Containers - Anyspheres Dev Container Extension: Use the Name Property of DevContainers + Allow to Switch Containers - #7 by ravirahman.

Let me know what you find.