Skip to content

Commit 09b962d

Browse files
committed
Add context to comment
1 parent 22868f6 commit 09b962d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PowerShellEditorServices/Services/PowerShell/Utility/CancellationContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public void CancelIdleParentTask()
6666

6767
// Note that this check is done *after* the cancellation because we want to cancel
6868
// not just the idle task, but its parent as well
69+
// because we want to cancel the ReadLine call that the idle handler is running in
70+
// so we can run something else in the foreground
6971
if (!scope.IsIdleScope)
7072
{
7173
break;

0 commit comments

Comments
 (0)