Skip to content

Tabbing [PSCustomObject] adds an additional ']' #3349

Closed
@SwarfegaGit

Description

@SwarfegaGit

System Details

### VSCode version: 1.56.0 cfa2e218100323074ac1948c885448fdf4de2a7f x64

### VSCode extensions:
eamodio.gitlens@11.4.1
mechatroner.rainbow-csv@1.8.1
ms-python.python@2021.5.840043038
ms-python.vscode-pylance@2021.5.2
ms-toolsai.jupyter@2021.6.832593372
ms-vscode.powershell@2021.2.2
oderwat.indent-rainbow@7.5.0


### PSES version: 2.3.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
System Details Output

Issue Description

AutoCompleting with tab when typing [PSCustomObject] adds an additional square bracket at the end.

In a blank file if you type a '[' the editor will automatically add a ]. Then type ps which it will recommend [PSCustomObject] so press tab to accept this. The autocomplete works but there's an additional ']'. See the actual behaviour section below.

Expected Behaviour

[PSCustomObject]@{
    Name = Value
}

Actual Behaviour

[PSCustomObject]@{
    Name = Value
}]

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