You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### VSCode version: 1.56.1 e713fe9b05fc24facbec8f34fb1017133858842b x64
### VSCode extensions:
[email protected][email protected][email protected]
### 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.19042
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Description
I am experiencing a problem with PowerShell script formatting where array methods are present. By default, rule powershell.codeFormatting.whitespaceBeforeOpenBrace is enabled and its producing weird formatting for such scenario. Kindly ask to consider either disabling that inside the methods parentheses or have additional rule to make the formatting look even.
Expected Behaviour
Whitespaces should not be changed between different type of braces or should be even.
$a=@(0..3)
$a.ForEach({ $_*$_ })
or
$a=@(0..3)
$a.ForEach( { $_*$_ } )
Actual Behaviour
$a=@(0..3)
$a.ForEach( { $_*$_ })
The text was updated successfully, but these errors were encountered:
System Details
System Details Output
Issue Description
I am experiencing a problem with PowerShell script formatting where array methods are present. By default, rule powershell.codeFormatting.whitespaceBeforeOpenBrace is enabled and its producing weird formatting for such scenario. Kindly ask to consider either disabling that inside the methods parentheses or have additional rule to make the formatting look even.
Expected Behaviour
Whitespaces should not be changed between different type of braces or should be even.
or
Actual Behaviour
The text was updated successfully, but these errors were encountered: