There was an error while loading. Please reload this page.
1 parent a6789aa commit 2d16735Copy full SHA for 2d16735
src/PowerShellEditorServices/Services/PowerShell/Host/InternalHost.cs
@@ -485,6 +485,9 @@ private void RunExecutionLoop()
485
486
private void DoOneRepl(CancellationToken cancellationToken)
487
{
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.
491
if (_skipNextPrompt)
492
493
_skipNextPrompt = false;
0 commit comments