diff options
author | Sandeep Somavarapu <sasomava@microsoft.com> | 2022-01-14 15:24:50 +0300 |
---|---|---|
committer | Sandeep Somavarapu <sasomava@microsoft.com> | 2022-01-14 15:25:01 +0300 |
commit | 9d80929066b4875602ce95baccaa90d07e24e473 (patch) | |
tree | 03cfe39a4b9ead54346aed75b896b6adc56c4b45 /src/vs/platform/extensionManagement/node/extensionManagementService.ts | |
parent | b0cd45c58df188f659fcb7cff8aac41ba0bf6007 (diff) |
Fix #139528
Diffstat (limited to 'src/vs/platform/extensionManagement/node/extensionManagementService.ts')
-rw-r--r-- | src/vs/platform/extensionManagement/node/extensionManagementService.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vs/platform/extensionManagement/node/extensionManagementService.ts b/src/vs/platform/extensionManagement/node/extensionManagementService.ts index 000d3a81661..a76149b899b 100644 --- a/src/vs/platform/extensionManagement/node/extensionManagementService.ts +++ b/src/vs/platform/extensionManagement/node/extensionManagementService.ts @@ -292,7 +292,7 @@ class InstallGalleryExtensionTask extends AbstractInstallExtensionTask { installableExtension.metadata.isMachineScoped = this.options.isMachineScoped || existingExtension?.isMachineScoped; installableExtension.metadata.isBuiltin = this.options.isBuiltin || existingExtension?.isBuiltin; installableExtension.metadata.isPreReleaseVersion = this.gallery.properties.isPreReleaseVersion; - installableExtension.metadata.preRelease = this.gallery.hasPreReleaseVersion ? this.gallery.properties.isPreReleaseVersion : existingExtension?.preRelease; + installableExtension.metadata.preRelease = this.gallery.hasPreReleaseVersion ? this.gallery.properties.isPreReleaseVersion : (existingExtension?.preRelease || this.options.installPreReleaseVersion); try { const local = await this.installExtension(installableExtension, token); @@ -396,7 +396,13 @@ class InstallVSIXTask extends AbstractInstallExtensionTask { [galleryExtension] = await this.galleryService.getExtensions([{ id }], token); } if (galleryExtension) { - return { id: galleryExtension.identifier.uuid, publisherDisplayName: galleryExtension.publisherDisplayName, publisherId: galleryExtension.publisherId, isPreReleaseVersion: galleryExtension.properties.isPreReleaseVersion, preRelease: galleryExtension.properties.isPreReleaseVersion }; + return { + id: galleryExtension.identifier.uuid, + publisherDisplayName: galleryExtension.publisherDisplayName, + publisherId: galleryExtension.publisherId, + isPreReleaseVersion: galleryExtension.properties.isPreReleaseVersion, + preRelease: galleryExtension.properties.isPreReleaseVersion || this.options.installPreReleaseVersion + }; } } catch (error) { /* Ignore Error */ |