'Visual studio Code - devcontainer extensions not installing behind VPN

I have a devcontainer.json set up with the following property:

"extensions": ["esbenp.prettier-vscode"],

Unfortunately, while I'm on VPN; the extension doesn't install (I can install it locally/manually).

Any thoughts on what could be causing this?



Solution 1:[1]

Setting the HTTP_PROXY explicitly in my .devcontainer file was the fix for me being behind a corporate firewall. Make sure you rebuild the container.

"containerEnv": {
    "HTTP_PROXY": "{your proxy}"
},

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cwalvoort