You may have noticed that with the latest update to the WSL remote extension (0.77.0), connecting to NixOS fails.
This is because Micrsoft removed the option for setting the remote connection method. Where before you could get it to connect by setting the option to something other than wslExeProxy, that is the only option available now.
There are two issues tracking possible solutions:
EDIT: As @purepani pointed out over at the Microsoft repo, for the time being, you can try to get it to work by downgrading the WSL Remote extension to the latest working version (0.76.0) either through the GUI or by running the following command:
code --install-extension ms-vscode-remote.remote-wsl@0.76.0
and making sure that you have the following setting configured in VSCode
"remote.WSL2.connectionMethod": "wsl2VMAddress",
You may have noticed that with the latest update to the WSL remote extension (0.77.0), connecting to NixOS fails.
This is because Micrsoft removed the option for setting the remote connection method. Where before you could get it to connect by setting the option to something other than
wslExeProxy, that is the only option available now.There are two issues tracking possible solutions:
wsl --exec#222 here for patching NixOS on WSL to supportwslExeProxyEDIT: As @purepani pointed out over at the Microsoft repo, for the time being, you can try to get it to work by downgrading the WSL Remote extension to the latest working version (
0.76.0) either through the GUI or by running the following command:and making sure that you have the following setting configured in VSCode