vscode提取拓展时出错。XHR failed
![在这里插入图片描述](https://img-blog.csdnimg.cn/da29b110c0c543cb953e28b2ec364dab.png)
问题分析
使用cmd的ping工具尝试ping域名 marketplace.visualstudio.com 无法ping通
解决方案:
-
打开本地配置文件 C:\Windows\System32\drivers\etc\hosts
-
添加如下映射并保存,重启vscode
对应ip查询
对应IP地址可通过:https://ip.tool.chinaz.com/ 查询
![在这里插入图片描述](https://img-blog.csdnimg.cn/695f68be0b7e443590dcd775e6935f2a.png)
nice解决
![在这里插入图片描述](https://img-blog.csdnimg.cn/fd9743ce9f214a039ccf7e98379252ba.png)
文章摘自:https://blog.csdn.net/qq_30386541/article/details/123181504 侵权删