Closed
Description
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
}
})
- Perform the action
Fold all
with the command palette - Try to
click
theplus sign
to unfold, notice that unfolding is not possible with the mouse.
Workarounds:
Unfold all
with the command palettte.- Move the code
$_.FullName -ne $DefaultsItem.FullName}).ForEach({
after theWhere
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