diff --git a/src/MonoDevelop.PackageManagement.Extensions/MonoDevelop.PackageManagement.Gui/PackageConsoleViewController.cs b/src/MonoDevelop.PackageManagement.Extensions/MonoDevelop.PackageManagement.Gui/PackageConsoleViewController.cs index 3fe45d4..d04e8b1 100644 --- a/src/MonoDevelop.PackageManagement.Extensions/MonoDevelop.PackageManagement.Gui/PackageConsoleViewController.cs +++ b/src/MonoDevelop.PackageManagement.Extensions/MonoDevelop.PackageManagement.Gui/PackageConsoleViewController.cs @@ -89,7 +89,15 @@ public void GrabFocus () void OnConsoleInput (object sender, ConsoleInputEventArgs e) { - ConsoleInput?.Invoke (sender, e); + if (userInputTask != null) { + // Waiting for user input. Bypass the usual processing. + WriteOutputLine (string.Empty, ScriptingStyle.Out); + + userInputTask.TrySetResult (e.Text); + userInputTask = null; + } else { + ConsoleInput?.Invoke (sender, e); + } } public event EventHandler TextViewFocused;