testing: fix "1 older results" in "Show Output" window has grammatical error (#245258)

Fixes #244218
This commit is contained in:
Connor Peet
2025-04-01 11:46:24 -07:00
committed by GitHub
parent 28b51a4dda
commit 614d367bd6
@@ -137,7 +137,9 @@ class OlderResultsElement implements ITreeElement {
public readonly label: string;
constructor(private readonly n: number) {
this.label = localize('nOlderResults', '{0} older results', n);
this.label = n === 1
? localize('oneOlderResult', '1 older result')
: localize('nOlderResults', '{0} older results', n);
this.id = `older-${this.n}`;
}