Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.8.3 helpCompletion Bug #1504

Closed
ephenix opened this issue Aug 30, 2018 · 1 comment
Closed

1.8.3 helpCompletion Bug #1504

ephenix opened this issue Aug 30, 2018 · 1 comment

Comments

@ephenix
Copy link

ephenix commented Aug 30, 2018

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
@rjmholt
Copy link
Contributor

rjmholt commented Aug 31, 2018

Hi @ephenix thanks for opening an issue. This issue is a duplicate of #1488 and will be fixed in the next release, which will hopefully be in the next week or so.

@rjmholt rjmholt closed this as completed Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants