I have Visual Studio Code operating with Remote WSL 2 on Ubuntu 20.04 (on a Win10 box behind a corporate firewall) and wanted to install the C# extension.
On addition of the extension and each time I entered VS Code / WSL 2 on that particular workspace, the extension is not able to install the required OmniSharp & Co. packages:
Error: connect ECONNREFUSED 127.0.0.1:9000
After checking several other posts I found the
NO_PROXY
environment variable, which does the trick when placed in.profile
.Steps:
~/.profile
on WSL2: