Skip to content

Treat compiled cmdlet OutputType as a first-class, pipeline-resolvable type source during parse-time completion #27285

@cachius

Description

@cachius

Prerequisites

Steps to reproduce

I am experiencing a problem with completion. I think Tab and Ctrl + Space should work but they don't show anything.

Expected behavior

PS> Get-AppxPackage | Select-Object -Property Pa [Ctrl + Space]
PackageFamilyName       PackageFullName         PackageUserInformation

Actual behavior

PS> Get-AppxPackage | Select-Object -Property Pa [Ctrl + Space]
[EMPTINESS]

Error details

Works fine with Get-ChildItem:
PS> Get-ChildItem | Select-Object -Property La [Ctrl + Space]
LastAccessTime       LastAccessTimeUtc    LastWriteTime        LastWriteTimeString  LastWriteTimeUtc


Also with simple wrapper function:
function Get-AppxPackageX {
    [CmdletBinding()]
    [OutputType([Microsoft.Windows.Appx.PackageManager.Commands.AppxPackage])]
    param()

    Get-AppxPackage @PSBoundParameters
}

Environment data

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

Visuals

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageThe issue is new and needs to be triaged by a work group.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions