vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

Configurable download location for vscode-server

Open craigleonard opened this issue 3 years ago • 5 comments

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.

craigleonard avatar Jan 10 '22 11:01 craigleonard

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.

tanhakabir avatar Jan 10 '22 17:01 tanhakabir

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

chrmarti avatar Feb 24 '22 09:02 chrmarti

@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 avatar Feb 24 '22 09:02 tanhakabir

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

chrmarti avatar Feb 24 '22 10:02 chrmarti

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.

batonac avatar Jun 27 '24 14:06 batonac