-
Notifications
You must be signed in to change notification settings - Fork 511
Wrong indent for pipelines #4252
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
Comments
Formatting is done via PSScriptAnalyzer, can you test if this repros independently via PSSA without the editor? That is, run the repro through |
> Invoke-Formatter -ScriptDefinition 'Get-ChildItem |
>> Select-Object Name'
Get-ChildItem |
Select-Object Name |
@RansomVO I suggest you open a separate issue for this |
@aelij What do you have your |
@aelij oh, re-reading your issue, I think for your expected scenario you just need to configure |
This issue has been marked as answered and has not had any activity in a day. It has been automatically closed for housekeeping purposes. |
@andschwa Can we change the default? It doesn't make sense IMO |
Prerequisites
Summary
PowerShell allows line breaks in pipelines without a backtick. I would expect the editor to indent it as if the backtick was present.
PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
Expected:
Actual:
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: