Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Lee Murray
2026-03-05 12:51:58 +00:00
committed by GitHub
parent 5a8fb3c212
commit f957df8e89

View File

@@ -107,7 +107,7 @@ export class ChatContextUsageDetails extends Disposable {
this.formatTokenCount(usedTokens, 1),
this.formatTokenCount(totalContextWindow, 0)
);
this.percentageLabel.textContent = `${percentage.toFixed(0)}%`;
this.percentageLabel.textContent = localize('quotaDisplay', "{0}%", percentage.toFixed(0));
// Update progress bar
this.progressFill.style.width = `${Math.min(100, percentage)}%`;