Central VS Code server installer across multiple remotes

huangapple go评论62阅读模式
英文:

Central VS Code server installer across multiple remotes

问题

我在一个网络非常慢的大学里,主要在Docker或其他WSL系统上进行开发。因此,很多时候当我启动VS Code时,它开始更新服务器并需要半个小时才能完成。

总是在x64架构上使用类似Debian的发行版,因此我可以为所有这些服务器实例使用相同的安装程序。有没有办法阻止它为每个远程机器反复下载相同的文件?

我只想统一使用互联网的下载过程;我很愿意在我的计算机上移动文件并在每个发行版中单独安装它(但至少应该能够编写一个脚本来执行此操作,如果不是直接由编辑器支持)。

英文:

I'm in a university with a very slow network, and I primarily develop on Docker or other WSL systems. As such, many times when I launch VS Code, it begins to update the server and takes half an hour to complete.

I always use Debian-like distros on the x64 architecture, so I can use the same installer for all these server instances. Is there a way I can stop it from downloading the same file again and again for each remote machine?

I want to unify just the download process that uses the internet; I'm happy to move the file around on my computer and install it separately in each distro (but I should at least be able to hack together a script to do this, if not make this supported directly by the editor).

答案1

得分: 1

VS Code已经提供了内置的解决方案。设置remote.SSH.allowLocalServerDownload

来源:https://www.reddit.com/r/vscode/comments/115k8tu/comment/j92lnzx/?context=3

英文:

VS Code already provides a built-in solution. Set remote.SSH.allowLocalServerDownload.

Source: https://www.reddit.com/r/vscode/comments/115k8tu/comment/j92lnzx/?context=3

huangapple
  • 本文由 发表于 2023年2月19日 01:23:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/75495072.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定