-
Notifications
You must be signed in to change notification settings - Fork 510
Regression in autoformatting of multiline pipes #2213
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
Possibly related, all three This is the only indentation style that is produced by
|
I also just figured out how to revert extension version and can now definitively say that it's a problem with the latest version of the extension. |
Formatting issues are typically caused by PSScriptAnalyzer since we depend on that. @bergmeister is a maintainer of that project and has been working on this particular formatting rule I believe. What do you think? |
When setting the foo |
bar This makes code not only more readable but also does not suffer from this problem for any setting choice and is therefore the suggested solution. |
We investigated this a bit and it seems to be a bug in the non-preview extension only, but we're not sure why yet. For now, the suggestion is to try out the preview extension. |
This is a duplicate of #2214 and will be fixed in the next release. |
Issue Description
I am experiencing a problem with... The formatter. I have
NoIndentation
set up in my "Pipeline Indentation Style" but it seems to have regressed and is no longer properly formatting my code. I have provided an error case below, but I have also observed issues with Pester test formatting with this pipe style.Ultimately, we developed this pipe style (backticks and pipe on the same line) to circumvent either prior issues or limitations with the formatter. Now we have a large code base that is growing increasing formatting issues. I would like this resolved, but I am also in any mitigation that can automatically be applied (ie only reformatting without modifying content), so preserving backticks.
Expected formatting
Observed formatting
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: