powershell VSCODE integrated formatter breaks certain linux commands on save by default #5198
Open
6 tasks done
Labels
Area-Code Formatting
Issue-Bug
A bug to squash.
Needs: Author Feedback
Please give us the requested feedback!
Prerequisites
Summary
we made major changes to a .ps1 file. All was well until save and the powershell extension's formatter saw:
mount / -o remount,rw
And changed it to
mount / -o remount, rw
Which of course DESTROYS THE ENTIRE PIPELINE. We lost days of time investigating this ridiculous issue.
Please do not auto-format such commands, ever!
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Install Vscode powershell extension.
Within vscode, create a .ps1 file containing:
mount / -o remount,rw
Save.
Line changes and breaks
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: