提交 c4420f28 编写于 作者: I isidor

callStack, repl and watchExpressions provide identityProvider

上级 8602d6d7
......@@ -112,6 +112,18 @@ export class CallStackView extends ViewletPanel {
], this.dataSource, {
accessibilityProvider: new CallStackAccessibilityProvider(),
ariaLabel: nls.localize({ comment: ['Debug is a noun in this context, not a verb.'], key: 'callStackAriaLabel' }, "Debug Call Stack"),
identityProvider: {
getId: element => {
if (typeof element === 'string') {
return element;
}
if (element instanceof Array) {
return `showMore ${element[0].getId()}`;
}
return element.getId();
}
}
}, this.contextKeyService, this.listService, this.themeService, this.configurationService);
const callstackNavigator = new TreeResourceNavigator2(this.tree);
......
......@@ -346,7 +346,8 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
new ReplRawObjectsRenderer()
], this.dataSource, {
ariaLabel: nls.localize('replAriaLabel', "Read Eval Print Loop Panel"),
accessibilityProvider: new ReplAccessibilityProvider()
accessibilityProvider: new ReplAccessibilityProvider(),
identityProvider: { getId: element => element.getId() }
}, this.contextKeyService, this.listService, this.themeService, this.configurationService);
this.toDispose.push(this.tree.onContextMenu(e => this.onContextMenu(e)));
......
......@@ -67,6 +67,7 @@ export class WatchExpressionsView extends ViewletPanel {
new WatchExpressionsDataSource(this.debugService), {
ariaLabel: nls.localize({ comment: ['Debug is a noun in this context, not a verb.'], key: 'watchAriaTreeLabel' }, "Debug Watch Expressions"),
accessibilityProvider: new WatchExpressionsAccessibilityProvider(),
identityProvider: { getId: element => element.getId() }
}, this.contextKeyService, this.listService, this.themeService, this.configurationService);
this.tree.refresh(null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册