Skip to content

Commit c1906ce

Browse files
committed
Add sleep to REPL loop to temporarily workaround race condition
1 parent cd52c3a commit c1906ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,9 @@ private void RunExecutionLoop(bool isForDebug = false)
683683

684684
try
685685
{
686+
// TODO: This works around a race condition around executing our interactive
687+
// tasks, and is a HIGH PRIORITY to fix.
688+
Thread.Sleep(200);
686689
DoOneRepl(cancellationScope.CancellationToken);
687690
}
688691
catch (OperationCanceledException)

0 commit comments

Comments
 (0)