-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VScode opens in Windows Host instead of WSL remote #242375
Comments
Can you add a screenshot? |
Here, you can see I use the Special caseWhen I use the same command from an already open VScode instance running on WSL host, it does open another instance of VSCode running on WSL host, as expected. |
Can you run You can ctrl+C after a few seconds, I'm only interested in the first few lines where we see how code.exe is invoked |
Here you go. It did output a bunch of things, let me know if you need more of it. [main 2025-03-06T04:25:06.186Z] PolicyConfiguration#initialize |
Type: Bug
Context
I'm running a Windows 11 machine with Ubuntu-24.04 installed in the WSL-2.0 envionment. In my workflow, I use the Terminal application to access the distro, and use
code .
CLI to open VScode workspaces in difference directories.Expected Behaviour
A VScode instance should open up connected to my WSL distro remote along with the worskpace in the directory from which the
code .
command was run.Bug
VScode instance opens up in the same directory but in my native Windows environment instead of connecting to WSL remote.
VS Code version: Code 1.97.2 (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (22)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: