Fix link for manual install of VSIX's (#8221)

This commit is contained in:
Charles Gagnon
2019-11-05 10:44:26 -08:00
committed by GitHub
parent 399788ccc1
commit e49ff93122

View File

@@ -81,7 +81,7 @@ const promptDownloadManually = (extension: IGalleryExtension | undefined, messag
if (!extension || error.name === INSTALL_ERROR_INCOMPATIBLE || error.name === INSTALL_ERROR_MALICIOUS || !productService.extensionsGallery) {
return Promise.reject(error);
} else {
const downloadUrl = `${productService.extensionsGallery.serviceUrl}/publishers/${extension.publisher}/vsextensions/${extension.name}/${extension.version}/vspackage`;
const downloadUrl = (extension.assets.downloadPage && extension.assets.downloadPage.uri) || extension.assets.download.uri; // {{SQL CARBON EDIT}} Use the URI directly since we don't have a marketplace hosting the packages
notificationService.prompt(Severity.Error, message, [{
label: localize('download', "Download Manually"),
run: () => openerService.open(URI.parse(downloadUrl)).then(() => {