2
0
Эх сурвалжийг харах

feat: add command to provide reh url (#1392)

Baptiste Augrain 2 жил өмнө
parent
commit
4afe89a9ce

+ 23 - 0
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';
++	}
++});