Skip to content

1.8.3 helpCompletion Bug #1504

@ephenix

Description

@ephenix

Issue Description

helpCompletion is copying the entire contents of the function

Confirmed this issue is only found in the 1.8.3 release.
I tested each release from 1.7.0 to 1.8.3; 1.8.2 was working.

Bug tested on two computers so far -- one Server 2016 machine and one Windows 10

function foo
{
    ## <---- Type this
    param(
        [String]
        $bar
    )
}

Result:

function foo
{
    {
    #
    param(
    [String]
    
    )
    param(
        [String]
        $bar
    )
}

Expected Result:

(after uninstalling and running this)
code --install-extension PowerShell-1.8.2.vsix

function foo
{
    <#
    .SYNOPSIS
    Short description
    
    .DESCRIPTION
    Long description
    
    .PARAMETER bar
    Parameter description
    
    .EXAMPLE
    An example
    
    .NOTES
    General notes
    #>
    param(
        [String]
        $bar
    )
}

Attached Logs

Follow the instructions in the README about
capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17134
VSCode 1.26.1
PowerShell Extension Version 1.8.3

PowerShell Information

Name Value
PSVersion 5.1.17134.228
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17134.228
BuildVersion 10.0.17134.228
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
gitlens eamodio 8.5.6
PowerShell ms-vscode 1.8.3

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