Skip to content

Commit 6eec64e

Browse files
authored
Fix IRawGalleryExtension.shortDescription can be undefined. (microsoft#202780)
`IRawGalleryExtension.shortDescription` can be undefined, some extensions doesn't have a "shortDescription" like: "temakulakov.hackjb"
1 parent d0e118c commit 6eec64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/platform/extensionManagement/common/extensionGalleryService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ interface IRawGalleryExtension {
6868
readonly extensionId: string;
6969
readonly extensionName: string;
7070
readonly displayName: string;
71-
readonly shortDescription: string;
71+
readonly shortDescription?: string;
7272
readonly publisher: IRawGalleryExtensionPublisher;
7373
readonly versions: IRawGalleryExtensionVersion[];
7474
readonly statistics: IRawGalleryExtensionStatistics[];
@@ -532,7 +532,7 @@ function toExtension(galleryExtension: IRawGalleryExtension, version: IRawGaller
532532
publisherDisplayName: galleryExtension.publisher.displayName,
533533
publisherDomain: galleryExtension.publisher.domain ? { link: galleryExtension.publisher.domain, verified: !!galleryExtension.publisher.isDomainVerified } : undefined,
534534
publisherSponsorLink: getSponsorLink(latestVersion),
535-
description: galleryExtension.shortDescription || '',
535+
description: galleryExtension.shortDescription ?? '',
536536
installCount: getStatistic(galleryExtension.statistics, 'install'),
537537
rating: getStatistic(galleryExtension.statistics, 'averagerating'),
538538
ratingCount: getStatistic(galleryExtension.statistics, 'ratingcount'),

0 commit comments

Comments
 (0)