From 19ccf65f7865f360918c0cbab07e400ef7b2bbc2 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Tue, 1 Feb 2022 13:57:16 -0800 Subject: [PATCH] Fix printing of command with F5 Small regression: accidentally called `Write...Write` instead of `Write...WriteLine`. --- .../Services/PowerShell/Host/PsesInternalHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs index 5dd4c30c2..dc1f1bc41 100644 --- a/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs +++ b/src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs @@ -684,7 +684,7 @@ private string GetPrompt(CancellationToken cancellationToken) public void WriteWithPrompt(PSCommand command, CancellationToken cancellationToken) { UI.Write(GetPrompt(cancellationToken)); - UI.Write(command.GetInvocationText()); + UI.WriteLine(command.GetInvocationText()); } private string InvokeReadLine(CancellationToken cancellationToken)