@@ -19,6 +19,7 @@ import { createDecorator, IInstantiationService, ServicesAccessor } from '../../
19
19
import { KeybindingWeight } from '../../keybinding/common/keybindingsRegistry.js' ;
20
20
import { inputActiveOptionBackground , registerColor } from '../../theme/common/colorRegistry.js' ;
21
21
import { StandardMouseEvent } from '../../../base/browser/mouseEvent.js' ;
22
+ import { IListAccessibilityProvider } from '../../../base/browser/ui/list/listWidget.js' ;
22
23
23
24
registerColor (
24
25
'actionBar.toggledBackground' ,
@@ -35,7 +36,7 @@ export const IActionWidgetService = createDecorator<IActionWidgetService>('actio
35
36
export interface IActionWidgetService {
36
37
readonly _serviceBrand : undefined ;
37
38
38
- show < T > ( user : string , supportsPreview : boolean , items : readonly IActionListItem < T > [ ] , delegate : IActionListDelegate < T > , anchor : HTMLElement | StandardMouseEvent | IAnchor , container : HTMLElement | undefined , actionBarActions ?: readonly IAction [ ] ) : void ;
39
+ show < T > ( user : string , supportsPreview : boolean , items : readonly IActionListItem < T > [ ] , delegate : IActionListDelegate < T > , anchor : HTMLElement | StandardMouseEvent | IAnchor , container : HTMLElement | undefined , actionBarActions ?: readonly IAction [ ] , accessibilityProvider ?: Partial < IListAccessibilityProvider < IActionListItem < T > > > ) : void ;
39
40
40
41
hide ( didCancel ?: boolean ) : void ;
41
42
@@ -59,10 +60,10 @@ class ActionWidgetService extends Disposable implements IActionWidgetService {
59
60
super ( ) ;
60
61
}
61
62
62
- show < T > ( user : string , supportsPreview : boolean , items : readonly IActionListItem < T > [ ] , delegate : IActionListDelegate < T > , anchor : HTMLElement | StandardMouseEvent | IAnchor , container : HTMLElement | undefined , actionBarActions ?: readonly IAction [ ] ) : void {
63
+ show < T > ( user : string , supportsPreview : boolean , items : readonly IActionListItem < T > [ ] , delegate : IActionListDelegate < T > , anchor : HTMLElement | StandardMouseEvent | IAnchor , container : HTMLElement | undefined , actionBarActions ?: readonly IAction [ ] , accessibilityProvider ?: Partial < IListAccessibilityProvider < IActionListItem < T > > > ) : void {
63
64
const visibleContext = ActionWidgetContextKeys . Visible . bindTo ( this . _contextKeyService ) ;
64
65
65
- const list = this . _instantiationService . createInstance ( ActionList , user , supportsPreview , items , delegate ) ;
66
+ const list = this . _instantiationService . createInstance ( ActionList , user , supportsPreview , items , delegate , accessibilityProvider ) ;
66
67
this . _contextViewService . showContextView ( {
67
68
getAnchor : ( ) => anchor ,
68
69
render : ( container : HTMLElement ) => {
0 commit comments