Skip to content

Configurable download location for vscode-server #6146

Open

Description

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.

Activity

  1. added
    ssh
    on Jan 10, 2022
  2. added
    feature-request
    on Jan 10, 2022
  3. tanhakabir commented on Jan 10, 2022

    @tanhakabir

    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.

  4. vscode-triage-bot commented on Jan 10, 2022

    @vscode-triage-bot
    Collaborator

    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!

  5. chrmarti commented on Feb 24, 2022

    @chrmarti
    Contributor

    Such a setting should probably apply to all remote extensions. (Closing #6304 for Remote-Containers as duplicate.)

  6. added
    remote
    and removed
    ssh
    on Feb 24, 2022
  7. tanhakabir commented on Feb 24, 2022

    @tanhakabir

    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

  8. chrmarti commented on Feb 24, 2022

    @chrmarti
    Contributor

    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.

  9. vscode-triage-bot commented on Mar 2, 2022

    @vscode-triage-bot
    Collaborator

    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

  10. vscode-triage-bot commented on Mar 3, 2022

    @vscode-triage-bot
    Collaborator

    🙂 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!

  11. batonac commented on Jun 27, 2024

    @batonac

    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.

  12. reenberg commented on Jul 2, 2025

    @reenberg

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestremote

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions