vscode Remote-SSH 遠(yuǎn)程連接linux失敗
打開vscode命令行,查看報(bào)錯(cuò)信息為:
[11:06:54.130] Terminating local server
[11:06:54.131] Resolver error: Error: XHR failed
at C.onerror (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:72:1399)
我的系統(tǒng)為win7,vscode版本為1.79

搜索到許多人遇到這個(gè)報(bào)錯(cuò),解決方案:
1.拉取文件并解壓https://update.code.visualstudio.com/commit:b380da4ef1ee00e224a15c1d4d9793e27c2b6302/server-linux-x64/stable //注意這里的commit 要根據(jù)自己的版本改,見上圖
文件名:vscode-server-linux-x64.tar.gz

2.mv vscode-server-linux-x64/* b380da4ef1ee00e224a15c1d4d9793e27c2b6302/
3.重啟vscode,解決
參考:
https://support.huaweicloud.com/intl/zh-cn/trouble-modelarts/modelarts_05_3117.html
https://blog.csdn.net/yang332233/article/details/143444160
純屬記錄程序人生,如有差錯(cuò),歡迎指正,輕噴

浙公網(wǎng)安備 33010602011771號