[ScriptAnalyzer Issue] Unexpected string with powershell.codeFormatting.whitespaceBetweenParameters enabled #5140
Labels
Area-Script Analysis
Issue-Bug
A bug to squash.
Pending: External
This issue is not fixed here, it is fixed in a dependent repo such as PowerShell,PSScriptAnalyzer
Prerequisites
Summary
When I enable the setting "powershell.codeFormatting.whitespaceBetweenParameters", a part of my code is deleted and replaced with the string "Co".
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2025.0.0
Steps to Reproduce
Enable the setting "powershell.codeFormatting.whitespaceBetweenParameters":
workspace.json
Testie.ps1
Now press "SHIFT + ALT + F" and see the new broken code:
When the setting "powershell.codeFormatting.whitespaceBetweenParameters" is
false
, the issue isn't happening.Visuals
From:
To:
Logs
No response
The text was updated successfully, but these errors were encountered: