diff options
author | Daniel Imms <2193314+Tyriar@users.noreply.github.com> | 2022-06-24 19:03:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 19:03:16 +0300 |
commit | 2ed7a47719dcf7f7c6f87771cbdb9fad0b7bacf1 (patch) | |
tree | 2b3b19ef0af630a3e8d9029ac9ce63640a8f53d1 /src/vs/workbench | |
parent | 52bac0cf4bd7e49a79729928818899418b3c114a (diff) | |
parent | 12fd87c1b6634c57accdf1fdfabb603dfb797fb8 (diff) |
Merge pull request #153140 from microsoft/merogge/find-aria
improve function name
Diffstat (limited to 'src/vs/workbench')
-rw-r--r-- | src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts | 4 |
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"); } |