Skip to content

Get-Credential "eats" first character typed and will put it to console output later in debug #3914

Closed

Description

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.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

When Using get-Credential in PS7.x and VSCode with Preview release of the PS-Extension, it eats the first character, a little bit to compare with this issue: #3881
This leads in copy pasting of the username in cropping the first letter of the login off the value.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.2.2
PSEdition                      Core
GitCommitId                    7.2.2
OS                             Microsoft Windows 10.0.19043
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.66.1
8dfae7a5cd50421d10cd99cb873990460525a898
x64

Extension Version

Steps to Reproduce

Put
$test=Get-Credentials
into a editor window and start with F8 (debug)
First character will not be taken, it will be later on in the console
copy paste even does not show anything until you press another key on the keyboard

Visuals

No response

Logs

No response

Activity

  1. ghost added
    Needs: Triage
    on Apr 12, 2022
  2. moved this from Todo to In Progress in Sea Biscuiton Apr 12, 2022
  3. added and removed
    Needs: Triage
    on Apr 12, 2022
  4. andyleejordan commented on Apr 12, 2022

    @andyleejordan
    Member

    Hi there, we just released v2022.4.0-preview! Could you please try PowerShell Preview for VS Code and verify this is fixed? It seemed to be in my testing, so marking as resolved, but please let me know if it's still occurs (or if new bugs show up)!

  5. ghost closed this as completedon Apr 13, 2022
  6. Repository owner moved this from In Progress to Done in Sea Biscuiton Apr 13, 2022
  7. MrFly72 commented on Apr 13, 2022

    @MrFly72
    Author

    See #3881 for a video of the ongoing problem with this.
    So it is not yet fixed completely, but better then before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-PSReadLineIssue-BugResolution-Fixed

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions