microsoft / microsoft/vscode-remote-release

Cannot connect multiple VS code windows to single docker container, despite menu options available

Open
#10,028 26 comments 13 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jul 4, 2024.

containers feature-request
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

With a docker container open in one VS code window, it is not possible to connect to the same container in another window, although the menu options suggest that this should be possible.

There is a previously closed issue regarding this (#1737) before the menu options were present. However, it appears that the menu options are now broken and the original behaviour has been re-introduced.

  • VSCode Version: 1.90.2
  • Local OS Version: Linux x64 6.5.0-41-generic / Ubuntu 20.04.6 LTS
  • Remote OS Version: Ubuntu 20.04.6 LTS
  • Remote Extension/Connection Type: Containers

Steps to Reproduce:

  1. Open a new empty window.
  2. Attach to a running docker container.
  3. Open a second window.
  4. Use the left-hand panel "Remote Explorer" tab. Right-click on the same running container and select "Attach in current window" or "Attach in new window".
  5. This causes the original window to regain focus, and the action is not performed as expected.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

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.