Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Imms <2193314+Tyriar@users.noreply.github.com>2022-06-24 19:03:16 +0300
committerGitHub <noreply@github.com>2022-06-24 19:03:16 +0300
commit2ed7a47719dcf7f7c6f87771cbdb9fad0b7bacf1 (patch)
tree2b3b19ef0af630a3e8d9029ac9ce63640a8f53d1 /src
parent52bac0cf4bd7e49a79729928818899418b3c114a (diff)
parent12fd87c1b6634c57accdf1fdfabb603dfb797fb8 (diff)
Merge pull request #153140 from microsoft/merogge/find-aria
improve function name
Diffstat (limited to 'src')
-rw-r--r--src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts4
1 files 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");
}