Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async $removeBreakpoints(breakpoints: Breakpoint[]): Promise {
const ids = new Set();
breakpoints.forEach(b => ids.add(b.id));
for (const origin of this.breakpointsManager.findMarkers({ dataFilter: data => ids.has(data.id) })) {
const breakpoint = new DebugBreakpoint(origin.data, this.labelProvider, this.breakpointsManager, this.editorManager, this.sessionManager.currentSession);
breakpoint.remove();
}
}