MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / getBreakpoints

Function getBreakpoints

src/actions/SetBreakpoint.ts:18–25  ·  view source on GitHub ↗
(uri: Uri, range: Range)

Source from the content-addressed store, hash-verified

16import displayPendingEditDecorations from "../util/editDisplayUtils";
17
18function getBreakpoints(uri: Uri, range: Range) {
19 return debug.breakpoints.filter(
20 (breakpoint) =>
21 breakpoint instanceof SourceBreakpoint &&
22 breakpoint.location.uri.toString() === uri.toString() &&
23 breakpoint.location.range.intersection(range) != null
24 );
25}
26
27export default class SetBreakpoint implements Action {
28 getTargetPreferences: () => ActionPreferences[] = () => [

Callers 1

runMethod · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected