Skip to content

Get-Help always launches online help if user has the -Online parameter defaulted to $true #1393

Closed
@deadlydog

Description

@deadlydog

I originally posted this bug in the VS Code PowerShell extension GitHub repo, but after digging through the code found that the bug was actually in this repository.

Basically the issue is that if the user has defaulted the Get-Help cmdlet's -Online parameter to $true, such as by putting this line in their PowerShell Profile:

$PSDefaultParameterValues.Add("Get-Help:Online", $true)

Then Get-Help will always launch a browser window. This causes an issue because VS Code (and other editors) use the getCommandHelp provider to provide the text for intellisense and tooltips. So whenever the editor would normally show intellisense or a tooltip, it instead opens a browser window to the online help page of the cmdlet. You can see this demonstrated in this gif.

PowerShellHelpAutomaticallyOpens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions