microsoft / microsoft/vscode-remote-release

Can't open github codespace in vscode if WSL was connected to first.

Open
#11,048 5 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

info-needed remote wsl
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Trying to connect to a github codespace via VSCode fails with the following error:
Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006)

This only happens when I connect to a WSL instance running on my local machine first and then spin up Docker Desktop using WSL integration. Closing out everything to do with WSL (including quitting Docker Desktop) then allows me to connect to my github codespaces again.

Connecting to WSL second does work as I would expect, without causing the codespace connection to break.

  • VSCode Version: 1.101.2
  • Local OS Version: Windows 11 (Windows_NT x64 10.0.26100)
  • Remote OS Version: Debian GNU/Linux 11 (bullseye)
  • Remote Extension/Connection Type: Dev Container (Github Codespace)
  • Logs: I tried to export codespaces logs but I get "Failed to get remote logs, the zip archive is incomplete

Steps to Reproduce:

  1. Open VSCode
  2. Connect to some WSL instance from your local machine
  3. Run docker desktop using WSL integration
  4. Open another VSCode window
  5. Attempt to connect to a github codespace

Does this issue occur when you try this locally?: Yes? I mean the issue is because of something to do with my local WSL/docker thing messing up the remote connection as far as I can tell
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.