Skip to content

Commit c88f7c2

Browse files
Fix logic error with IsUsable check
We definitely do not want to ignore cancel requests when the runspace **is** usable. Oops
1 parent a62d6bc commit c88f7c2

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
@@ -333,7 +333,7 @@ private void StopDebuggerIfRemoteDebugSessionFailed()
333333

334334
private void CancelNormalExecution()
335335
{
336-
if (_pwsh.Runspace.RunspaceStateInfo.IsUsable())
336+
if (!_pwsh.Runspace.RunspaceStateInfo.IsUsable())
337337
{
338338
return;
339339
}

0 commit comments

Comments
 (0)