Skip to content
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

powershell.codeFormatting.whitespaceBetweenParameters removes more than just whitespace #1613

Closed
ghvanderweg opened this issue Nov 5, 2020 · 1 comment

Comments

@ghvanderweg
Copy link

  • VS Code 1.50.1
  • ms-vscode.powershell v2020.6.0
  • Tested with both PowerShell 7.0.3 and 5.1
  • Windows 10.0.19041

Enabling the powershell.codeFormatting.whitespaceBetweenParameters setting causes the formatter to remove more than just whitespace in some cases.

For example, if you use an inline hashtable as the argument for a parameter, it will remove the = characters from the hashtable:

formatter

I also found a case where it removed an apostrophe, breaking a Pester test:

formatter2

@SydneyhSmith SydneyhSmith transferred this issue from PowerShell/vscode-powershell Nov 5, 2020
@ghost ghost added the Needs: Triage 🔍 label Nov 5, 2020
@ghvanderweg
Copy link
Author

My bad, this looks like a duplicate of #1561. I'll close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant