You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Configurable download location for vscode-server #6146
I work in an environment where an end user's ability to download software from the internet on to their desktop is restricted. We'd like enable the use of the Remote SSH extension, but the current installation mechanism for vscode-server doesn't work for us. The target hosts lack internet access to pull down the tarball, and we cannot to use the capability exposed by the remote.SSH.allowLocalServerDownload flag as this would result in a direct download to the user's desktop machine.
I'd like to be able to configure a download location for vscode-server, allowing us to serve the tarball from inside our network. This would require the extension to expose a configuration property through which the base download url could be modified, defaulting to https://update.code.visualstudio.com.
A workable alternative for us would be an offline mode for the Remote SSH installation, as described by #1399.
Reacted by James, Frinze Erin Lapuz, tokusumi, Peter Jonsson, Sam Pfeiffer, Cuong Nghiem, kedelux, Zijian Zhu, g4njawizard, Daniel Maticzka and 30 more
Thanks for detailing your situation! I'll mark this as a feature request for now but if you feel like #1399 supports your case well I'd show support and track progress on that issue.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Christof Marti (@chrmarti) this is specific to configuring where the VS Code server data is downloaded locally not on the remote. On the remote we have a setting remote.SSH.serverInstallPath which lets you customize where the server is downloaded on the remote
tanhakabir The description asks for the download URL to be configurable, so they can host like a mirror in their network:
I'd like to be able to configure a download location for vscode-server, allowing us to serve the tarball from inside our network. This would require the extension to expose a configuration property through which the base download url could be modified, defaulting to https://update.code.visualstudio.com.
This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
tanhakabir , any chance this could get some attention? There are a handful of issues all related to offline support of all the remote extensions, all with a handful of votes.
The proposed solution here seem like a fairly easy implementation, fixing the issues people in disconnected/offline environments are experiencing, by allowing the hardcoded URL https://update.code.visualstudio.com/commit:${r}/ to be changed in the settings, with a format string to express the commit sha in the url, as such environments typically has well defined processes in place to mirror content locally, e.g. using rclone or rsync scripts.
Besides this addition to the config options, then some easy way to rclone or rsync the code server binaries would be preferable (e.g. like https://packages.microsoft.com/), but not strictly needed. One would just need to extract the commit sha and manually download the code server from the known url for each release, which would suck, but be doable.
This would then leave the relatively more complex issue of supporting people that are "offline, on the move", which #10173 seems to be all about, and which could be fixed by caching the code server when it is downloaded.
Obviously #1399 would solve this, but it seems like a way bigger task to solve, if ever selected for development. And it also doesn't solve that such disconnected environments needs to host extensions and other dependencies anyways. So this simple solution seems reasonable.
Activity
tanhakabir commentedon Jan 10, 2022
Thanks for detailing your situation! I'll mark this as a feature request for now but if you feel like #1399 supports your case well I'd show support and track progress on that issue.
vscode-triage-bot commentedon Jan 10, 2022
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
chrmarti commentedon Feb 24, 2022
Such a setting should probably apply to all remote extensions. (Closing #6304 for Remote-Containers as duplicate.)
tanhakabir commentedon Feb 24, 2022
Christof Marti (@chrmarti) this is specific to configuring where the VS Code server data is downloaded locally not on the remote. On the remote we have a setting
remote.SSH.serverInstallPathwhich lets you customize where the server is downloaded on the remotechrmarti commentedon Feb 24, 2022
tanhakabir The description asks for the download URL to be configurable, so they can host like a mirror in their network:
vscode-triage-bot commentedon Mar 2, 2022
This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding
vscode-triage-bot commentedon Mar 3, 2022
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
batonac commentedon Jun 27, 2024
I think this is somewhat related to Unable to download vscode when connecting to ssh host. #208522.
It would be nice to be able to just set the url to a static value such as the latest (AFICT) per os/architecture combo.
reenberg commentedon Jul 2, 2025
tanhakabir , any chance this could get some attention? There are a handful of issues all related to offline support of all the remote extensions, all with a handful of votes.
The proposed solution here seem like a fairly easy implementation, fixing the issues people in disconnected/offline environments are experiencing, by allowing the hardcoded URL
https://update.code.visualstudio.com/commit:${r}/to be changed in the settings, with a format string to express the commit sha in the url, as such environments typically has well defined processes in place to mirror content locally, e.g. usingrcloneorrsyncscripts.Besides this addition to the config options, then some easy way to rclone or rsync the code server binaries would be preferable (e.g. like https://packages.microsoft.com/), but not strictly needed. One would just need to extract the commit sha and manually download the code server from the known url for each release, which would suck, but be doable.
This would then leave the relatively more complex issue of supporting people that are "offline, on the move", which #10173 seems to be all about, and which could be fixed by caching the code server when it is downloaded.
Obviously #1399 would solve this, but it seems like a way bigger task to solve, if ever selected for development. And it also doesn't solve that such disconnected environments needs to host extensions and other dependencies anyways. So this simple solution seems reasonable.