diff --git a/src/vs/workbench/parts/debug/common/debugModel.ts b/src/vs/workbench/parts/debug/common/debugModel.ts index 85784598978..303fc12498a 100644 --- a/src/vs/workbench/parts/debug/common/debugModel.ts +++ b/src/vs/workbench/parts/debug/common/debugModel.ts @@ -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; }