vscode XHR failed
时间: 2023-12-13 20:34:16 浏览: 135
根据提供的引用内容,出现 "VS Code server locally" 下载失败的原因可能是网络问题。解决思路是手动下载文件到服务器。具体步骤如下:
1. 登录服务器,进入以下目录查看 commit id:
```shell
~/.vscode-server/bin
```
2. 在本地浏览器中打开以下链接,将其中的 {commit id} 替换为上一步中查到的 commit id:
```shell
https://update.code.visualstudio.com/commit:{commit id}/server-linux-x64/stable
```
3. 在浏览器中下载 server-linux-x64.tar.gz 文件。
4. 将下载的文件上传到服务器中,例如上传到 /home/user/Downloads 目录下。
5. 进入以下目录,将下载的文件解压缩:
```shell
~/.vscode-server/bin/{commit id}
```
6. 将解压缩后的文件夹名改为 server,例如:
```shell
mv server-linux-x64 server
```
7. 重启 VS Code 即可。
相关问题
vscode xhr failed报错
您好,关于 "vscode xhr failed 报错" 的问题,这可能是因为您的网络不稳定或者遇到了防火墙的问题。您可以尝试以下几个方法:
1. 检查网络连接是否正常,并尝试换一个网络环境,重试一下。
2. 检查是否在使用代理或VPN,若是,请尝试更换或者关闭它们。
3. 检查本地防火墙设置,尝试关闭本地防火墙或者添加相应的白名单规则。
希望以上解决方案能够帮助到您,谢谢!
ubuntu vscode xhr failed
Ubuntu中出现VS Code的扩展失败XHR Failed错误通常是由于代理设置引起的。要解决这个问题,您可以按照以下步骤操作:
1. 打开Ubuntu的网络设置,找到代理选项。
2. 确保代理设置已正确配置,如果您不使用代理,则需要关闭代理设置。
3. 打开VS Code,点击设置(齿轮图标),然后搜索"proxy"。
4. 在VS Code中同步设置代理,确保与Ubuntu的代理设置保持一致。
5. 重新尝试下载扩展程序,应该不再出现XHR Failed错误。
阅读全文
相关推荐
















