提交 3a62cc87 编写于 作者: E Eric Amodio

Adds a basic accessibilityProvider #92342

上级 4f179b72
......@@ -821,6 +821,15 @@ export class TimelinePane extends ViewPane {
this.tree = <WorkbenchObjectTree<TreeElement, FuzzyScore>>this.instantiationService.createInstance(WorkbenchObjectTree, 'TimelinePane',
this.$tree, new TimelineListVirtualDelegate(), [this.treeRenderer], {
identityProvider: new TimelineIdentityProvider(),
accessibilityProvider: {
getAriaLabel(element: TreeElement): string {
if (isLoadMoreCommandItem(element)) {
return localize('timeline.loadMore', 'Load more');
}
return localize('timeline.aria.item', "{0}: {1}", element.relativeTime ?? '', element.label);
}
},
ariaLabel: this.title,
keyboardNavigationLabelProvider: new TimelineKeyboardNavigationLabelProvider(),
overrideStyles: {
listBackground: this.getBackgroundColor(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册