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

Fix parenthesis placement with Stroustrup alignment when using MultiLineLambdaClosingNewline=true #2714

Merged
merged 3 commits into from
Jan 14, 2023

Conversation

josh-degraw
Copy link
Contributor

Closes #2378

Copy link
Contributor

@nojaf nojaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @josh-degraw!

I added a couple of more tests and tighten the condition when we drop the new line.
If the expression is not a Stroustrup one then you do want the newline.
Because of this check update records are also filtered out of this. We can revisit this at some point in the future.

Great PR!

@nojaf nojaf merged commit 5336c50 into fsprojects:main Jan 14, 2023
@josh-degraw josh-degraw deleted the multiline-lambda-strous branch January 26, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MultiLineLambdaClosingNewline + ExperimentalStroustrupStyle is not displaying very well for some use cases
2 participants