File tree Expand file tree Collapse file tree
src/vs/base/browser/ui/list Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { CombinedSpliceable } from 'vs/base/browser/ui/list/splice';
2626import { clamp } from 'vs/base/common/numbers' ;
2727import { matchesPrefix } from 'vs/base/common/filters' ;
2828import { IDragAndDropData } from 'vs/base/browser/dnd' ;
29+ import { alert } from 'vs/base/browser/ui/aria/aria' ;
2930
3031interface ITraitChangeEvent {
3132 indexes : number [ ] ;
@@ -428,6 +429,14 @@ class TypeLabelController<T> implements IDisposable {
428429 if ( typeof labelStr === 'undefined' || matchesPrefix ( word , labelStr ) ) {
429430 this . list . setFocus ( [ index ] ) ;
430431 this . list . reveal ( index ) ;
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 ;
436+ if ( ariaLabel ) {
437+ alert ( ariaLabel ) ;
438+ }
439+ }
431440 return ;
432441 }
433442 }
You can’t perform that action at this time.
0 commit comments