add-remote-url.patch 1.3 KB

1234567891011121314151617181920212223
  1. diff --git a/src/vs/workbench/contrib/remote/browser/remote.contribution.ts b/src/vs/workbench/contrib/remote/browser/remote.contribution.ts
  2. index 63e7f2d..e9a6b7d 100644
  3. --- a/src/vs/workbench/contrib/remote/browser/remote.contribution.ts
  4. +++ b/src/vs/workbench/contrib/remote/browser/remote.contribution.ts
  5. @@ -13,2 +13,4 @@ import { RemoteStatusIndicator } from 'vs/workbench/contrib/remote/browser/remot
  6. import { AutomaticPortForwarding, ForwardedPortsView, PortRestore } from 'vs/workbench/contrib/remote/browser/remoteExplorer';
  7. +import { CommandsRegistry } from 'vs/platform/commands/common/commands';
  8. +import { localize } from 'vs/nls';
  9. @@ -23 +25,13 @@ workbenchContributionsRegistry.registerWorkbenchContribution(AutomaticPortForwar
  10. workbenchContributionsRegistry.registerWorkbenchContribution(RemoteMarkers, LifecyclePhase.Eventually);
  11. +
  12. +CommandsRegistry.registerCommand({
  13. + id: 'remote.serverDownloadUrlTemplate',
  14. + description: {
  15. + description: localize('remote.serverDownloadUrlTemplate', 'Provides the url template to download the server archive'),
  16. + args: [],
  17. + returns: 'string',
  18. + },
  19. + handler: async (_) => {
  20. + return 'https://github.com/VSCodium/vscodium-insiders/releases/download/${version}.${release}-insider/vscodium-reh-${os}-${arch}-${version}.${release}-insider.tar.gz';
  21. + }
  22. +});