Skip to content

Commit 214d6e3

Browse files
Don't process breakpoints when we have none
1 parent b9068d9 commit 214d6e3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

libs/vscode/debug/src/lib/idl-breakpoint-manager.class.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ export class IDLBreakpointManager {
120120
/** Get the current breakpoints in IDL */
121121
const bps = await this.getBreakpoints();
122122

123+
// return if no breakpoints
124+
if (bps.length === 0) {
125+
return;
126+
}
127+
123128
/** Clean the path */
124129
const cleaned = CleanPath(file);
125130

@@ -154,6 +159,11 @@ export class IDLBreakpointManager {
154159
return [];
155160
}
156161

162+
// return if no breakpoints
163+
if (!bps.lines || bps.lines.length === 0) {
164+
return [];
165+
}
166+
157167
/** Get file */
158168
const file = CleanPath(bps.source.path);
159169

0 commit comments

Comments
 (0)