Skip to content

Unfolding not possible #1523

Closed
Closed
@aeschli

Description

@aeschli

From @DarkLite1 on September 11, 2018 6:53

Consider the following PowerShell file:

Test.ps1

        $ImportedMatrix = @(Get-ChildItem -Path ImportDir:\* -Include *.xlsx -File).Where({
            $_.FullName -ne $DefaultsItem.FullName}).ForEach({
            Try { 
                $Obj = [PSCustomObject]@{
                    File = @{
                        Item = $_
                        SaveFullName = $_.FullName
                        ExcelInfo = $null
                        LogFolder = $null
                        Check = @()
                    }
                    Settings = @()
                    Permissions = @{ 
                        Import = @()
                        Check = @()
                    }
                }

                $Obj
            }
            Catch {
                Write-Warning $_
                Send-MailHC -To $ScriptAdmin -Subject FAILURE -Priority High -Message $_ -Header $ScriptName
                Write-EventLog @EventErrorParams -Message ($env:USERNAME + ' - ' + "FAILURE:`n`n- " + $_)
                Write-EventLog @EventEndParams; Exit 1
            }
        })
  1. Perform the action Fold all with the command palette
  2. Try to click the plus sign to unfold, notice that unfolding is not possible with the mouse.

image

Workarounds:

  1. Unfold all with the command palettte.
  2. Move the code $_.FullName -ne $DefaultsItem.FullName}).ForEach({ after the Where clause on the same line
Version: 1.28.0-insider (user setup)
Commit: 96854113091424c07b28ba84b82b75a88b8455cb
Date: 2018-09-10T05:18:57.119Z
Electron: 2.0.7
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64

Copied from original issue: microsoft/vscode#58414

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