microsoft / vscode-remote-release

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.
https://aka.ms/vscode-remote
Other
3.68k stars 296 forks source link

"Rebuild container" fails if swapping from `.devcontainer/devcontainer.json` to `.devcontainer.json` or vice versa #10385

Open chriscunningham-qodea opened 1 month ago

chriscunningham-qodea commented 1 month ago

Steps to Reproduce:

  1. Open a project containing devcontainer configuration in (workspaceFolder)/.devcontainer/devcontainer.json.
  2. Decide that you don't need the subdirectory, and move the file to (workspaceFolder)/.devcontainer.json.
  3. Run the Dev Containers: Rebuild Container command.

Expected Result:

Actual Result:

Current Workaround: