microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 286 forks source link

Configurable download location for vscode-server #6146

Open craigleonard opened 2 years ago

craigleonard commented 2 years ago

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 https://github.com/microsoft/vscode-remote-release/issues/1399.

tanhakabir commented 2 years ago

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.

chrmarti commented 2 years ago

Such a setting should probably apply to all remote extensions. (Closing https://github.com/microsoft/vscode-remote-release/issues/6304 for Remote-Containers as duplicate.)

tanhakabir commented 2 years ago

@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

chrmarti commented 2 years ago

@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.

batonac commented 4 months ago

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.