Skip to content

VSCode PowerShell Preview PSES no longer shows history from previous F8/F5 command in buffer #3683

Closed
@brwilkinson

Description

@brwilkinson

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.

Summary

The current behavior of the PowerShell Extension is to show the history in the Terminal after using F5 or F8

  • This is available with the up arrow to re-execute the previous command; however this is missing in the current preview.

Typo on my video: "Up arrow does not show history"

There are also some artifacts and clearing of the screen when executing the second command, however I didn't open this issue for that.

Cannot_See_History_with_UpArrow.mp4

issue starts at 30 seconds onwards.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.2.0-preview.10
PSEdition                      Core
GitCommitId                    7.2.0-preview.10
OS                             Microsoft Windows 10.0.22499
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.62.0
b3318bc0524af3d74034b8bb8a64df0ccf35549a
x64

Extension Version

ms-vscode.powershell@2021.10.2     # disabled
ms-vscode.powershell-preview@2021.11.0

Steps to Reproduce

run a command from the script pane with F8
watch it execute
Go to the terminal and press the up arrow, the previous command is not in the buffer
It is shown in the history

Visuals

video is above, you can skip to 30 seconds.

Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions