microsoft / microsoft/vscode-remote-release

devcontainer cannot auto reconnect, when open same devcontainer with different path at the same time, then rebuild

Open
#11,767 0 comments 0 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jul 25, 2026.

bug
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

bug

devcontainer cannot auto reconnect, when open same devcontainer with different path at the same time, then rebuild

prepare

Within same devcontainer XXX.

There is

  • /path/to/foo

  • /path/to/bar

And their workspace extension is different

  • /path/to/foo/.vscode/extensions/

  • /path/to/bar/.vscode/extensions/

Project manager UI save proejcts.

Results in alefragnani.project-manager/projects.json

  {
    "name": "foo",
    "rootPath": "vscode-remote://dev-container+xxx/path/to/foo",
    "paths": [],
    "tags": [],
    "enabled": true
  },
  {
    "name": "bar",
    "rootPath": "vscode-remote://dev-container+xxx/path/to/bar",
    "paths": [],
    "tags": [],
    "enabled": true
  },

foo Ctrl+Shift+P >Dev Containers: Rebuild Container

Wait, then foo is OK

expected

Wait, then bar is also OK

actual

But bar UI prompt

Visual Studio Code

Cannot reconnect. Please reload the window.

Click Reload Window

bar is OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.