Skip to content

Commit 65913b9

Browse files
committed
Don't clear all breakpoints on every event
We get breakpoint set/remove events independently for each breakpoint, yet we're clearing all of them each time. This results in the breakpiont IDs within the PowerShell session increasing quickly, and isn't necessary. This probably isn't the whole fix.
1 parent 800d084 commit 65913b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/DebugAdapter/DebugService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public DebugService(
135135
public async Task<BreakpointDetails[]> SetLineBreakpointsAsync(
136136
ScriptFile scriptFile,
137137
BreakpointDetails[] breakpoints,
138-
bool clearExisting = true)
138+
bool clearExisting = false)
139139
{
140140
var dscBreakpoints =
141141
this.powerShellContext

0 commit comments

Comments
 (0)