來源:https://stackoverflow.com/questions/70177216/visual-studio-code-error-while-fetching-extensions-xhr-failed/70294449#70294449
1、so i find this
press f1
search user setting
click enter
search on user setting " proxy "
click enter
look for "use the proxy support for extensions."
change overide to on
maybe this can help you.
2、I had the same problem, and finally, today, I just resolved it.
All you need to do is enter to the json settings file from VSC
- Press F1
- Type User Settings
- Search for Proxy
- In proxy section, look for the title
Http: Proxy Autorization
- Click on 'Edit in settings.json'
- Delete all brackets containing proxy data
- Save json file
After that, just restart VSC You can also find the json find on %appdata%/Code/User/settings.json