Skip to content

Implement HelpMessage in the interactive console #1538

Open
@rjmholt

Description

@rjmholt

(Should be a PowerShellEditorServices issue, but here for visibility)

Moved from microsoft/vscode#59042.

The ReadLine of the custom host does not support the HelpMessage parameter setting:

function Test-ParametersAndPrompts {
    [cmdletbinding()]
    param(
        [parameter(Mandatory, HelpMessage = 'Enter the location of the folder.')]
        [string]
        $Path
    )

    process {
        $path
    }
}

Running Test-ParametersAndPrompts in the Integrated Console correctly prompts for the Path parameter, but does not support the ?! input to get the help message.

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