Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting connect ETIMEDOUT when trying to install a VSCODE extension

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.

like image 518
Dror Avatar asked Feb 16 '16 07:02

Dror


People also ask

How do I manually install an extension in VS Code?

You can manually install a VS Code extension packaged in a . vsix file. Using the Install from VSIX command in the Extensions view command dropdown, or the Extensions: Install from VSIX command in the Command Palette, point to the . vsix file.

Why my extension is not working in VS Code?

The solution was to go to Windows PowerShell and open Visual Studio Code, then go to the extensions and restart the Remote - WSL extension, and go back to WSL. It then started working immediately.

How do I fix VS Code extension?

Open the Extensions view (Ctrl+Shift+X), disable an extension, reload the window (Developer: Reload Window), and check to see if the problem still exists. If the problem is gone, that extension is "bad" and you are done. Otherwise, re-enable the extension and repeat the process with the next extension.


2 Answers

Here is what you can do.

Most extensions are in public repos. Click Getting Started on the side panel.

enter image description here

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.

like image 28
Wade Anderson Avatar answered Oct 19 '22 21:10

Wade Anderson


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

like image 135
fusionplanet Avatar answered Oct 19 '22 20:10

fusionplanet