From 01666a6328b566a52898641aa716a7e5d5eb50a4 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Fri, 7 Feb 2025 12:49:18 +0100 Subject: [PATCH] fix: handle breakpoint updates with `0` ID --- packages/debug/src/browser/debug-session.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/debug/src/browser/debug-session.tsx b/packages/debug/src/browser/debug-session.tsx index 5fefa1bfd3ea2..ffa70052cac27 100644 --- a/packages/debug/src/browser/debug-session.tsx +++ b/packages/debug/src/browser/debug-session.tsx @@ -661,7 +661,7 @@ export class DebugSession implements CompositeTreeElement { } } } - if (body.reason === 'removed' && raw.id) { + if (body.reason === 'removed' && typeof raw.id === 'number') { const toRemove = this.findBreakpoint(b => b.idFromAdapter === raw.id); if (toRemove) { toRemove.remove(); @@ -673,7 +673,7 @@ export class DebugSession implements CompositeTreeElement { } } } - if (body.reason === 'changed' && raw.id) { + if (body.reason === 'changed' && typeof raw.id === 'number') { const toUpdate = this.findBreakpoint(b => b.idFromAdapter === raw.id); if (toUpdate) { toUpdate.update({ raw });