From 4afe89a9cebf006e0ead94d1f1ea8c04e42f30ab Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 30 Jan 2023 00:03:37 +0100 Subject: [PATCH] feat: add command to provide reh url (#1392) --- patches/insider/add-remote-url.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/insider/add-remote-url.patch diff --git a/patches/insider/add-remote-url.patch b/patches/insider/add-remote-url.patch new file mode 100644 index 0000000..ca335de --- /dev/null +++ b/patches/insider/add-remote-url.patch @@ -0,0 +1,23 @@ +diff --git a/src/vs/workbench/contrib/remote/browser/remote.contribution.ts b/src/vs/workbench/contrib/remote/browser/remote.contribution.ts +index 63e7f2d..e9a6b7d 100644 +--- a/src/vs/workbench/contrib/remote/browser/remote.contribution.ts ++++ b/src/vs/workbench/contrib/remote/browser/remote.contribution.ts +@@ -13,2 +13,4 @@ import { RemoteStatusIndicator } from 'vs/workbench/contrib/remote/browser/remot + import { AutomaticPortForwarding, ForwardedPortsView, PortRestore } from 'vs/workbench/contrib/remote/browser/remoteExplorer'; ++import { CommandsRegistry } from 'vs/platform/commands/common/commands'; ++import { localize } from 'vs/nls'; + +@@ -23 +25,13 @@ workbenchContributionsRegistry.registerWorkbenchContribution(AutomaticPortForwar + workbenchContributionsRegistry.registerWorkbenchContribution(RemoteMarkers, LifecyclePhase.Eventually); ++ ++CommandsRegistry.registerCommand({ ++ id: 'remote.serverDownloadUrlTemplate', ++ description: { ++ description: localize('remote.serverDownloadUrlTemplate', 'Provides the url template to download the server archive'), ++ args: [], ++ returns: 'string', ++ }, ++ handler: async (_) => { ++ return 'https://github.com/VSCodium/vscodium-insiders/releases/download/${version}.${release}-insider/vscodium-reh-${os}-${arch}-${version}.${release}-insider.tar.gz'; ++ } ++});