microsoft / microsoft/vscode-remote-release

opening from wsl does not connect to remote server

Open
#4,611 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

plan-review wsl
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Calling code . from WSL (in a mounted windows folder) opens vscode in the correct folder, but in Windows instead of remote. WSL extension is installed, and doing Remote-WSL: Reopen Folder in WSL in vscode works properly.

Side note, I think this is what #4109 is asking for as an open feature request, so it shouldn't be expected behavior.

  • VSCode Version: 1.54.1 (installed via scoop, if it changes anything)
  • Local OS Version: Windows 10 20H2
  • Remote OS Version: Ubuntu 20.04 LTS (WSL1)
  • Remote Extension/Connection Type: WSL

Steps to Reproduce:

  1. open WSL terminal
  2. open vscode in a Windows folder: /mnt/c/Users/kmasuyama/Workspace/testdir$ code .

Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A

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.

Research direction

Reproduce code . from WSL in /mnt/c/... and compare it with Remote-WSL: Reopen Folder in WSL. Read issue #4109 first, since this report identifies it as the relevant feature request. Done means the expected behavior and scope are settled, with the WSL-mounted-folder case covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.