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
Thanks @jkewley for opening this issue--this is an area we have made some recent changes to but appears that we still have some remaining issue....have you had the chance to see if this reproduces outside of VSCode using Invoke-Formatter command?
$script=@'$whoisthis = New-Object PSObject -Property @{ Somebody = "once told me" That = "the world is gonna roll me"}'@Invoke-Formatter-ScriptDefinition $script-Settings @{
Rules=@{
PSUseConsistentWhitespace=@{
Enable=$trueCheckParameter=$true
}
}
}
Copied over from the VS Code repo
System Details
Issue Description
PowerShell setting
Code Formatting : Whitespace Between Parameters
has a bug when formattingNew-Object PSObject -Property
code.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:
The text was updated successfully, but these errors were encountered: