PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.71k stars 488 forks source link

Get-History not working properly when using up or down keys #688

Closed marekciel closed 7 years ago

marekciel commented 7 years ago

Issue Description

When using up and down arrows it will enumerate the empty history. If you look at the get-History it contains empty values. This is not the case when using Powershell shell.

codeissue2

This is also causing an issue when running a selected part of the script with F8. When more then one line is selected to run this is kept in the history therefore obstructing the view for the next line.

codeissue1

I want also to ask if there is a possibility to specify "terminal.integrated.shell.windows": "c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe", to be set to "PowerShell Integrated" shell rather then Powershell so I could open multiple integrated shells and to use only one $profile file to run.

System Details

PS C:> code -v 1.10.2 8076a19fdcab7e1fc1707952d652f0bb6c6db331 PS C:> $pseditor.EditorServicesVersion PS C:> code --list-extensions --show-versions gerane.Theme-Blackboard@0.0.2 gerane.Theme-tonic@0.0.2 GrapeCity.gc-excelviewer@1.1.13 IBM.output-colorizer@0.1.0 ms-vscode.PowerShell@0.12.2 Poorchop.theme-darktooth@0.0.2 robertohuertasm.vscode-icons@7.5.1 ryu1kn.partial-diff@0.2.0 spywhere.guides@0.7.0 woodywoodsta.vscode-material-syntax-dark@0.1.1 PS C:> $PSVersionTable

Name Value


PSVersion 5.0.10586.117 PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.10586.117 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

daviwil commented 7 years ago

Thanks Marek! Closing this as a duplicate of #618, I'll be fixing this soon.