From 76f74f1ed482ebc9ffa40eb9a473bf053631a566 Mon Sep 17 00:00:00 2001 From: thegecko Date: Thu, 13 May 2021 19:27:11 +0100 Subject: [PATCH] Fix enable/disable of verified breakpoints Signed-off-by: thegecko --- packages/debug/src/browser/model/debug-source-breakpoint.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/debug/src/browser/model/debug-source-breakpoint.tsx b/packages/debug/src/browser/model/debug-source-breakpoint.tsx index 9f5deaacc1678..a4f5e0ab0887d 100644 --- a/packages/debug/src/browser/model/debug-source-breakpoint.tsx +++ b/packages/debug/src/browser/model/debug-source-breakpoint.tsx @@ -50,7 +50,8 @@ export class DebugSourceBreakpoint extends DebugBreakpoint imp const { uri, raw } = this; let shouldUpdate = false; let breakpoints = raw && this.doRemove(this.origins.filter(origin => !(origin.raw.line === raw.line && origin.raw.column === raw.column))); - if (breakpoints) { + // Check for breakpoints array with at least one entry + if (breakpoints && breakpoints.length) { shouldUpdate = true; } else { breakpoints = this.breakpoints.getBreakpoints(uri);