Formatter does not obey some whitespace settings #2375
Description
Issue Description
The powershell.codeFormatting.WhitespaceInsideBrace
setting has no effect and formatter adds whitespaces regardless of its value.
This has been around since 2019.9.0. I was hoping it would get fixed in this release but it didn't.
AFAIK, this one has nothing to do with the pipeline indentation issues reported earlier and should not be treated as a duplicate of any of those.
Steps to reproduce
Set
"powershell.codeFormatting.WhitespaceInsideBrace": false
Type into the editor
& {0}
Format document (Alt
+ Shift
+ F
)
Expected behaviour
& {0}
No whitespace gets added inside braces.
Actual, incorrect behavior
& { 0 }
Note the added whitespace after the {
and before the }
.
Environment data
vscode-powershell v2019.12.0
VS Code
Version: 1.41.0 (system setup)
Commit: 9579eda04fdb3a9bba2750f15193e5fafe16b959
Date: 2019-12-11T18:37:42.077Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363
Notes
This is basically a duplicate of #2245 but it got closed with erroneous information before I found it and managed to comment.