Skip to content

Commit 4847f32

Browse files
authored
Merge pull request microsoft#183220 from microsoft/merogge/ext-rate
round ext rating to 2 decimal places
2 parents b8559c1 + 43cf22b commit 4847f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/extensions/browser/extensionsViews.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,6 @@ export function getAriaLabelForExtension(extension: IExtension | null): string {
14591459
}
14601460
const publisher = extension.publisherDomain?.verified ? localize('extension.arialabel.verifiedPublihser', "Verified Publisher {0}", extension.publisherDisplayName) : localize('extension.arialabel.publihser', "Publisher {0}", extension.publisherDisplayName);
14611461
const deprecated = extension?.deprecationInfo ? localize('extension.arialabel.deprecated', "Deprecated") : '';
1462-
const rating = extension?.rating ? localize('extension.arialabel.rating', "Rated {0} out of 5 stars by {1} users", extension.rating, extension.ratingCount) : '';
1462+
const rating = extension?.rating ? localize('extension.arialabel.rating', "Rated {0} out of 5 stars by {1} users", extension.rating.toFixed(2), extension.ratingCount) : '';
14631463
return `${extension.displayName}, ${deprecated ? `${deprecated}, ` : ''}${extension.version}, ${publisher}, ${extension.description} ${rating ? `, ${rating}` : ''}`;
14641464
}

0 commit comments

Comments
 (0)