Skip to content

Integrated Terminal captures return key presses as history items #618

Closed
@AspenForester

Description

@AspenForester

System Details

PS C:\Users\me> code -v
1.10.2
8076a19fdcab7e1fc1707952d652f0bb6c6db331
PS C:\Users\me>
PS C:\Users\me> $pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
0      11     0      0


PS C:\Users\me>
PS C:\Users\me> code --list-extensions --show-versions
ms-vscode.PowerShell@0.11.0
PS C:\Users\me>
PS C:\Users\me> $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

Issue Description

Hitting the return key preceded by no other entry results in the history being incremented, and arrowing back to the last executed command requires arrowing up through each of your return hits.

Attached Logs

PS C:\Users\me> get-history

  Id CommandLine
  -- -----------
   1 gci


PS C:\Users\me> get-history

  Id CommandLine
  -- -----------
   1 gci
   2 get-history


PS C:\Users\me>
PS C:\Users\me>
PS C:\Users\me>
PS C:\Users\me> get-history

  Id CommandLine
  -- -----------
   1 gci
   2 get-history
   3 get-history
   4
   5
   6


PS C:\Users\me>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions