From 455b3478c16c02e9329798ef1bfda24f16ec4222 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 16 Aug 2021 12:45:19 -0700 Subject: [PATCH] Fix download manually link (#16787) * Fix download manually link * Fix compile --- .../workbench/contrib/extensions/browser/extensionsActions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts b/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts index 42b57167c5..6b35739134 100644 --- a/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts +++ b/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts @@ -101,7 +101,7 @@ export class PromptExtensionInstallFailureAction extends Action { constructor( private readonly extension: IExtension, - private readonly version: string, + public readonly version: string, // {{SQL CARBON EDIT}} Making public to get around compile error since we don't use this anymore (easier than updating all constructor calls) private readonly installOperation: InstallOperation, private readonly error: Error, @IProductService private readonly productService: IProductService, @@ -141,7 +141,7 @@ export class PromptExtensionInstallFailureAction extends Action { if (this.extension.gallery && this.productService.extensionsGallery) { promptChoices.push({ label: localize('download', "Try Downloading Manually..."), - run: () => this.openerService.open(URI.parse(`${this.productService.extensionsGallery!.serviceUrl}/publishers/${this.extension.publisher}/vsextensions/${this.extension.name}/${this.version}/vspackage`)).then(() => { + run: () => this.openerService.open(URI.parse(this.extension.gallery.assets.download?.uri ?? this.extension.gallery.assets.downloadPage.uri)).then(() => { // {{SQL CARBON EDIT}} Use links from the assets since we don't have the same marketplace this.notificationService.prompt( Severity.Info, localize('install vsix', 'Once downloaded, please manually install the downloaded VSIX of \'{0}\'.', this.extension.identifier.id),