Skip to content

Commit 9d18d81

Browse files
Fix cancelling a debug task
`CancelDebugExecution` was supposed to exit early when the runspace was unusable. Basically forgot the `!` in the `if` statement.
1 parent 948dffe commit 9d18d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Execution/SynchronousPowerShellTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ internal void MaybeAddToHistory()
382382

383383
private void CancelDebugExecution()
384384
{
385-
if (_pwsh.Runspace.RunspaceStateInfo.IsUsable())
385+
if (!_pwsh.Runspace.RunspaceStateInfo.IsUsable())
386386
{
387387
return;
388388
}

0 commit comments

Comments
 (0)