Skip to content

Commit

Permalink
breakpoints: contribute getRole and isChecked
Browse files Browse the repository at this point in the history
fixes #52390
  • Loading branch information
isidorn committed Jul 5, 2019
1 parent 9d023ed commit 6b8667a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vs/workbench/contrib/debug/browser/breakpointsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ export class BreakpointsView extends ViewletPanel {
], {
identityProvider: { getId: (element: IEnablement) => element.getId() },
multipleSelectionSupport: false,
keyboardNavigationLabelProvider: { getKeyboardNavigationLabel: (e: IEnablement) => e }
keyboardNavigationLabelProvider: { getKeyboardNavigationLabel: (e: IEnablement) => e },
ariaProvider: {
getSetSize: (_: IEnablement, index: number, listLength: number) => listLength,
getPosInSet: (_: IEnablement, index: number) => index,
getRole: (breakpoint: IEnablement) => 'checkbox',
isChecked: (breakpoint: IEnablement) => breakpoint.enabled
}
}) as WorkbenchList<IEnablement>;

CONTEXT_BREAKPOINTS_FOCUSED.bindTo(this.list.contextKeyService);
Expand Down

0 comments on commit 6b8667a

Please sign in to comment.