提交 345ad41c 编写于 作者: A André Weinand

improve breakpoint model api

上级 e266e0a0
......@@ -855,6 +855,19 @@ export class Model implements IModel {
return this.breakpoints;
}
public getBreakpointsForResource(resource: uri): IBreakpoint[] {
const uriString = resource.toString();
return this.breakpoints.filter(bp => bp.uri.toString() === uriString);
}
public getActivatedBreakpointsForResource(resource: uri): IBreakpoint[] {
if (this.breakpointsActivated) {
const uriString = resource.toString();
return this.breakpoints.filter(bp => bp.uri.toString() === uriString);
}
return [];
}
public getFunctionBreakpoints(): IFunctionBreakpoint[] {
return this.functionBreakpoints;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册