-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ScriptAnalyzer Issue] Unexpected string with powershell.codeFormatting.whitespaceBetweenParameters enabled #5140
Comments
Thanks for your submission! This is a ScriptAnalyzer issue. Please file an issue there with this reproduction, and report back if it gets fixed there. I'll leave this issue open but marked as Pending: External as there's nothing we can do to fix it here.
|
Fixed by the PSScriptAnalyzer team |
Great! I'm actually going to leave this open until the newest version gets bundled into the extension. Assigning @andyleejordan to coordinate. |
Hopefully doing a preview of PSScriptAnalyzer within the month, to bundle into a preview of the extension! |
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
[email protected]
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: