Visual Studio Code 服务器现在可以自托管了!


OpenVSCode Server 还提供非 docker 指令。但是,它仅适用于 Linux。
它是全功能的,如 Visual Studio Online/Visual Studio Codespace/GitHub Codespace(/其他数百个微软将重命名的名称),意味着它在服务器上有文件系统和终端访问,不像vscode.dev/github.dev

假设在 Linux x64 上:

  1. 在浏览器中打开https://update.code.visualstudio.com/api/commits/insider/server-linux-x64-web,你会看到一个 JSON 数组包含一堆哈希值,记下第一个(最新) , 说0e3304bca9e862eddc7e437e2bab8a4a4a4f33c9
  2. 下载https://az764295.vo.msecnd.net/insider/{hash}/vscode-server-linux-x64-web.tar.gz,替换{hash}成上面那个,比如https://az764295.vo.msecnd.net/insider/0e3304bca9e862eddc7e437e2bab8a4a4a4f33c9/vscode-server-linux-x64-web.tar.gz
  3. 将下载的文件解压到你喜欢的地方
  4. 假装阅读许可条款。
  5. 运行bin/code-server-insiders --accept-server-license-terms
  6. 在浏览器中打开链接