-
Notifications
You must be signed in to change notification settings - Fork 517
Description
Hi guys, I hope everybody is well ^^
For any Powershell script that I open in VScode, when I set a break point, and launch the script, VS code will stop at that breakpoint.
Once stopped, I then have the possibility to launch several commands in the interactive shell beneath the scripting pane. I can have a look into variables, launch various powershell commands, my loaded functions without any issue.
If I want to recall a command that I typed earlier, by pressing the up or down arrow nothing happens. I need to retype the complete command if I want to call the same command twice.
Reproduction Steps:
-
Create a script called Test.ps1
-
Add a few random commands in it:
Get-Command
Get-Random
Get-Module
Get-Service -
Set a break point on Get-Random for example, and call the script
-
In the debugger type get-process, get-history,get-random
-
Try to use the up or down arrow to get to the previous typed commands (this is what is not working).
VScode version:
PSExention version --> 1.4.1
System Details
- Operating system name and version: seen on Windows 10 (psv 5.0) and Windows Server 2012 R2 (ps v 5.1)
- VS Code version: 5.0 and 5.1
- PowerShell extension version:
- Output from
$PSVersionTable
:
See below
$pseditor.EditorServicesVersion
1.14.1
2648980a697a4c8fb5777dcfb2ab110cec8a2f58
code --list-extensions --show-versions
ms-vscode.PowerShell@1.4.1
$PSVersionTable
$PsVersionTable:
Name Value
---- -----
PSVersion 5.1.14407.1003
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14407.1003
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
(But this behaviour is identicall on a machine with ps 5.0)
Thanks in advance guys! :)