- 
                Notifications
    You must be signed in to change notification settings 
- Fork 403
Open
Labels
Description
When using the methods .where and .foreach in VS Code there's an incorrect indentation of the closing brackets and a space is added after the method.
Expected behavior
@().foreach({
})Actual behavior
@().foreach( {
    })Environment data
Name                           Value
----                           -----
PSVersion                      5.1.14409.1018
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14409.1018
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }
1.17.1Related to an issue in the PowerShell repo.
JVimes and camusicjunkie
