Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
Open a project containing devcontainer configuration in (workspaceFolder)/.devcontainer/devcontainer.json.
Decide that you don't need the subdirectory, and move the file to (workspaceFolder)/.devcontainer.json.
Run the Dev Containers: Rebuild Container command.
Expected Result:
Container extension uses its usual heuristics to determine the location of the devcontainer configuration in the repo and rebuilds based on the discovered file.
Actual Result:
Container extension attempts to re-build using the existing config location, which no longer exists, and so errors out (see logs).
Current Workaround:
Reopen the repo locally.
Run Dev Containers: Rebuild and Reopen in Container.
Extension correctly scans for a config file path and builds as expected.
VSCode Version: Version: 1.94.2 (Universal) Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Local OS Version: MacOS 15.0.1 (24A348)
Remote OS Version: N/A
Remote Extension/Connection Type: Containers
Logs:
Steps to Reproduce:
(workspaceFolder)/.devcontainer/devcontainer.json
.(workspaceFolder)/.devcontainer.json
.Dev Containers: Rebuild Container
command.Expected Result:
Actual Result:
Current Workaround:
Dev Containers: Rebuild and Reopen in Container
.