mirror of
https://github.com/VSCodium/vscodium
synced 2024-08-27 13:01:38 +00:00
feat: add command to provide reh url (#1392)
This commit is contained in:
parent
2d254e9368
commit
4afe89a9ce
23
patches/insider/add-remote-url.patch
Normal file
23
patches/insider/add-remote-url.patch
Normal file
|
@ -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';
|
||||
+ }
|
||||
+});
|
Loading…
Reference in a new issue