Reputation: 5495
When trying to install a VSCODE extension from the marketplace, I'm getting connect ETIMEDOUT xxx.xxx.xxx.xxx:443 possibly due to company firewall restrictions.
Is there a way to download and install extensions from a local drive? I couldn't find a "download" option on the VSCODE marketplace.
Upvotes: 12
Views: 29641
Reputation: 59
Same issue. VS Code clearly not talking to extension server.
code --install-extension <extension>
gave a time-out message.
Turned out that I had bogus settings of HTTP_PROXY and HTTPS_PROXY. Unset the environment variables and VS Code worked beautifully.
Upvotes: 2
Reputation: 89499
Add proxy configuration to VS Code
{
"http.proxy": "http://userName:password@companyProxyURL:portNumber",
"http.proxyStrictSSL": false
}
Upvotes: 5
Reputation: 316
You need to add your corporate proxy to VSCode settings.
Step 1. Open File > Preferences > User Settings
Step 2.
Copy and Paste below into the settings.json (file that opens) make sure is inside the curly brackets {}
//-------- HTTP configuration --------
// The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables
"http.proxy": "http://127.0.0.1:8080", //your corporate proxy
// Whether the proxy server certificate should be verified against the list of supplied CAs.
"http.proxyStrictSSL": false
Step 3. Press F1 and type Reload Window and press enter to refresh.
Tip: if you don't know your corporate proxy settings, follow this advice: https://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using
Upvotes: 20
Reputation: 2519
Here is what you can do.
Most extensions are in public repos. Click Getting Started on the side panel.
Download the code from the public repo.
Follow the instructions in the docs to side load the application.
If you want to share your extension or customization with others privately, you can simply send them a copy of the output from the generator and ask them to add it under their .vscode/extensions folder. Alternatively, package your extension using the vsce publishing tool and send them the .vsix file.
Upvotes: 6