Skip to content

Tab completion for $PROVIDER:-like variables fails after the colon #25624

@matteocoder

Description

@matteocoder

Prerequisites

Steps to reproduce

  1. launch pwsh -noprofile
  2. type ls $env:
  3. attempt to complete the variable names with either TAB or ctrl+space

Expected behavior

ls $env:ALLUSERSPROFILE
ALLUSERSPROFILE
APPDATA
...

Actual behavior

ls $env:

Error details

Environment data

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

Visuals

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions