Skip to content

completionItem/resolve provider is doubling some module's prefixes when attempting Get-Help #1242

Closed
@nakosenk

Description

@nakosenk

This happens on VS Code 1.43.2 using both the PowerShell 2020.03.0 and PowerShell Preview 2020.03.0 with PowerShell 5.1 on Windows 10 1909.

To reproduce the problem, start typing Test-RD and PSES will call Get-Help to search for Test-RDRDOUAccess when the actual Cmdlet is Test-RDOUAccess. This also happens with a script module I've created, but the RemoteDesktop module is one that comes from Microsoft.

Strangely, the only other module that I have that uses a Prefix is the ServerManagerTasks module, also from Microsoft, but that one does not cause the problem.

It's possible this could be a PowerShell bug, since I've seen that with my script module using the variable $MyInvocation.MyCommand results in the double prefix, but $MyInvocation.MyCommand.Name does not.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions