Open aetonsi opened 11 months ago
i've seen this https://github.com/PowerShell/vscode-powershell/issues/3947 issue but mine is not related to an "it" block nor to indentation..
I can confirm that I can reproduce this and it doesn't appear to be a bug with ScriptAnalyzer as Invoke-Formatter
works as expected.
Cant reproduce. PS Version 7.4.5 VS 1.94.0 vscode.powershell 2024.2.2
Prerequisites
Summary
if you try to format a code that has a multiline parenthesis, and 2 spaces before the first command argument after the closing parenthesis, the code disappears from the 3 character of the first line, to the argument that follows the double space.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
try to format this (note the TWO spaces before
-RepeatHeader
):it becomes:
Visuals
https://github.com/PowerShell/vscode-powershell/assets/18366087/1297308d-59d8-49e4-acbb-5542d711d899
Logs
No response