Skip to content

Commit 2d16735

Browse files
committed
Add comment
1 parent a6789aa commit 2d16735

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PowerShellEditorServices/Services/PowerShell/Host/InternalHost.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ private void RunExecutionLoop()
485485

486486
private void DoOneRepl(CancellationToken cancellationToken)
487487
{
488+
// When a task must run in the foreground, we cancel out of the idle loop and return to the top level.
489+
// At that point, we would normally run a REPL, but we need to immediately execute the task.
490+
// So we set _skipNextPrompt to do that.
488491
if (_skipNextPrompt)
489492
{
490493
_skipNextPrompt = false;

0 commit comments

Comments
 (0)