一. 无法与*建立连接 本地下载 VS Code 服务器(Failed to fetch).现象长时间处于本地下载VSCode报错 无法与*建立连接 本地下载 VS Code 服务器(Failed to fetch).解决办法打开叉掉弹窗按住Ctrl鼠标点击Output Log…“打开详细日志上划找到如下日志下载vscode_cli_alpine_x64_cli.tar.gz并拷贝到服务器上。下载地址每个版本不一样需要使用日志中打印链接比如我是https://update.code.visualstudio.com/commit:110a328ea54b42367b803ec53ee0bf52ef26b419/cli-alpine-x64/stable将下载的文件拷贝到服务器并改名目标路径每个版本不一样需要使用日志中打印的路径比如我是cpvscode_cli_alpine_x64_cli.tar.gz /root/.vscode-server/vscode-cli-110a328ea54b42367b803ec53ee0bf52ef26b419.tar.gz创建标志文件cp/root/.vscode-server/vscode-cli-110a328ea54b42367b803ec53ee0bf52ef26b419.tar.gz /root/.vscode-server/vscode-cli-110a328ea54b42367b803ec53ee0bf52ef26b419.tar.gz.done按F1选择重新加载窗口二. 正在下载VS Code服务器完成步骤一以后大概率会卡在这个问题现象一直卡在“正在下载VSCode 服务器”日志包含以下内容[11:03:28.703]No hints foundinthe recent session.[11:03:58.974][server]Checking /root/.vscode-server/cli/servers/Stable-110a328ea54b42367b803ec53ee0bf52ef26b419/log.txt and /root/.vscode-server/cli/servers/Stable-110a328ea54b42367b803ec53ee0bf52ef26b419/pid.txtfora running server...[11:03:59.145][server]Installing and setting up Visual Studio Code Server...[11:04:50.410]Error proxying HTTPS request tohttps://update.code.visualstudio.com/commit:110a328ea54b42367b803ec53ee0bf52ef26b419/server-linux-x64/stableon behalf of remote server: Error: connect ETIMEDOUT150.171.110.131:443[11:04:50.413][server]Checking /root/.vscode-server/cli/servers/Stable-110a328ea54b42367b803ec53ee0bf52ef26b419/log.txt and /root/.vscode-server/cli/servers/Stable-110a328ea54b42367b803ec53ee0bf52ef26b419/pid.txtfora running server...[11:04:50.469][server]Installing and setting up Visual Studio Code Server...[11:05:41.604]Error proxying HTTPS request tohttps://update.code.visualstudio.com/commit:110a328ea54b42367b803ec53ee0bf52ef26b419/server-linux-x64/stableon behalf of remote server: Error: connect ETIMEDOUT150.171.110.131:443[11:06:28.597]解决办法下载vscode-server-linux-x64.tar.gz并拷贝到服务器上。下载地址每个版本不一样需要使用日志中打印链接比如我是https://update.code.visualstudio.com/commit:110a328ea54b42367b803ec53ee0bf52ef26b419/server-linux-x64/stable在服务器上创建新版的正确目录结构每个版本不一样需要使用日志中打印的路径比如我是# 创建 CLI 服务器目录mkdir-p/root/.vscode-server/cli/servers/Stable-110a328ea54b42367b803ec53ee0bf52ef26b419/server将已下载的 server 包解压到新位置# 解压到新建的 server 目录--strip 1 去掉顶层文件夹tar-xzfvscode-server-linux-x64.tar.gz\-C/root/.vscode-server/cli/servers/Stable-110a328ea54b42367b803ec53ee0bf52ef26b419/server\--strip1按F1选择重新加载窗口