Useful or not, from you.
vscode XHR Failed on trying to install plugins via Visual Studio code

<!-- Do you have a question? Please ask it on http://stackoverflow.com/questions/tagged/vscode. -->

<!-- Use Help > Report Issues to prefill these. -->

  • VSCode Version: 1.16.0
  • OS Version: Windows 10

Steps to Reproduce:

  1. When trying to install a plugin, i get an error XHR Failed.
  2. Also when i try to download the extensions manually and try to install it via the options "install from VSIX", it fails silently.
  3. I am behind a proxy network.
That's a useful answer
Without any help

i got same problem and solved it by doing that

  1. Go to : Control Panel\Network and Internet\Network Connections
  2. Choose your connection network and ( right click on it then choose properties )
  3. Select " Internet Protocol Version 4 (TCP/IPv4) and then click on properties in the bottom of this section
  4. At General section click on " Use the following DNS Server address : "
  5. Make " Preferred DNS server : 8.8.8.8 "
  6. Make " Alternate DNS server : 8.8.4.4 "
  7. Restart VS code