We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e5f972 commit 4e80e2fCopy full SHA for 4e80e2f
1 file changed
src/vs/base/browser/ui/list/listWidget.ts
@@ -432,7 +432,7 @@ class TypeLabelController<T> implements IDisposable {
432
433
if (index === start) {
434
// Focus did not change with typing, re-announce element https://github.com/microsoft/vscode/issues/95961
435
- const ariaLabel = this.list.options.accessibilityProvider ? this.list.options.accessibilityProvider.getAriaLabel(this.list.element(index)) : undefined;
+ const ariaLabel = this.list.options.accessibilityProvider?.getAriaLabel(this.list.element(index));
436
if (ariaLabel) {
437
alert(ariaLabel);
438
}
0 commit comments