From 12fd87c1b6634c57accdf1fdfabb603dfb797fb8 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Fri, 24 Jun 2022 08:47:46 -0700 Subject: [PATCH] improve name --- .../contrib/codeEditor/browser/find/simpleFindWidget.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts b/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts index b7a0b3110a7..21018be3fee 100644 --- a/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts +++ b/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts @@ -338,13 +338,13 @@ export abstract class SimpleFindWidget extends Widget { } else if (count?.resultCount) { label = strings.format(NLS_MATCHES_LOCATION, count.resultIndex + 1, count?.resultCount); } - alertFn(this._getAriaLabel(label, this.inputValue)); + alertFn(this._announceSearchResults(label, this.inputValue)); this._matchesCount.appendChild(document.createTextNode(label)); this._findInput?.domNode.insertAdjacentElement('afterend', this._matchesCount); this._foundMatch = !!count && count.resultCount > 0; } - private _getAriaLabel(label: string, searchString?: string): string { + private _announceSearchResults(label: string, searchString?: string): string { if (!searchString) { return nls.localize('ariaSearchNoInput', "Enter search input"); }