提交 ec4675ae 编写于 作者: I isidor

debug: make exception breakpoints accessible

上级 fb850a0b
......@@ -939,10 +939,6 @@ export class BreakpointsAccessibilityProvider implements tree.IAccessibilityProv
export class BreakpointsController extends BaseDebugController {
protected onLeftClick(tree:tree.ITree, element: any, event: mouse.IMouseEvent): boolean {
if (element instanceof model.ExceptionBreakpoint) {
return false;
}
if (element instanceof model.FunctionBreakpoint && event.detail === 2) {
this.debugService.getViewModel().setSelectedFunctionBreakpoint(element);
return true;
......@@ -951,25 +947,6 @@ export class BreakpointsController extends BaseDebugController {
return super.onLeftClick(tree, element, event);
}
protected onUp(tree:tree.ITree, event:IKeyboardEvent): boolean {
return this.doNotFocusExceptionBreakpoint(tree, super.onUp(tree, event));
}
protected onPageUp(tree:tree.ITree, event:IKeyboardEvent): boolean {
return this.doNotFocusExceptionBreakpoint(tree, super.onPageUp(tree, event));
}
private doNotFocusExceptionBreakpoint(tree: tree.ITree, upSucceeded: boolean) : boolean {
if (upSucceeded) {
const focus = tree.getFocus();
if (focus instanceof model.ExceptionBreakpoint) {
tree.focusNth(2);
}
}
return upSucceeded;
}
protected onDelete(tree: tree.ITree, event: IKeyboardEvent): boolean {
const element = tree.getFocus();
if (element instanceof model.Breakpoint) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册