diff --git a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs index a1ccee7b5..b08c31ec5 100644 --- a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs +++ b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs @@ -602,6 +602,8 @@ private void DoOneRepl(CancellationToken cancellationToken) { if (!_hostInfo.ConsoleReplEnabled) { + // Throttle the REPL loop with a sleep because we're not interactively reading input from the user. + Thread.Sleep(100); return; }