Copied over from the VS Code repo
System Details
Issue Description
PowerShell setting Code Formatting : Whitespace Between Parameters has a bug when formatting
New-Object PSObject -Property code.
Given:
$whoisthis = New-Object PSObject -Property @{
Somebody = "once told me"
That = "the world is gonna roll me"
}
reformatting without the setting checked gives us
$whoisthis = New-Object PSObject -Property @{
Somebody = "once told me"
That = "the world is gonna roll me"
}
with the option checked we get
$whoisthis = New-Object PSObject -Property @{
Somebody "once told me"
That = "the world is gonna roll me"
}
which is illegal (equals sign is gone after 'Somebody')
Expected Behaviour
I would expect this:
$whoisthis = New-Object PSObject -Property @{
Somebody = "once told me"
That = "the world is gonna roll me"
}
Copied over from the VS Code repo
System Details
Issue Description
PowerShell setting
Code Formatting : Whitespace Between Parametershas a bug when formattingNew-Object PSObject -Propertycode.Given:
reformatting without the setting checked gives us
with the option checked we get
which is illegal (equals sign is gone after 'Somebody')
Expected Behaviour
I would expect this: