Skip to content

[Repo Assist] Regression test for lambda with MultiLineLambdaClosingNewline and changelog entry (#2553)#3231

Merged
nojaf merged 2 commits into
mainfrom
repo-assist/fix-issue-2553-lambda-v2-4d13ea3da29804c0
Feb 27, 2026
Merged

[Repo Assist] Regression test for lambda with MultiLineLambdaClosingNewline and changelog entry (#2553)#3231
nojaf merged 2 commits into
mainfrom
repo-assist/fix-issue-2553-lambda-v2-4d13ea3da29804c0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

This supersedes #3228, adding both the regression test and the changelog entry requested by @nojaf.

Closes #2553

Summary

Adds a regression test confirming that a lambda expression inside a chained method call (e.g. .Setup(fun ... -> <@ ... @>)) is formatted correctly when MultiLineLambdaClosingNewline = true and MaxLineLength = 100. The closing ) should not be placed on its own line.

Also adds a changelog entry under ## [Unreleased] documenting the fix.

Correct output

Mock()
    .Setup(fun aaaaaaaaaaaa ->
        <@ aaaaaaaaaaaa.Abcdefghijklmnopqrs "Food" "IsTastier" @>
    )
    .Returns(false)
    .Create()

Test Status

dotnet build src/Fantomas.Core.Tests/ succeeds. The new regression test passes.

Generated by Repo Assist

Generated by Repo Assist

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@afb00b92a9514fee9a14c583f059a03d05738f70

Repo Assist and others added 2 commits February 27, 2026 04:09
…sue 2553

Closes #2553

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nojaf nojaf closed this Feb 27, 2026
@nojaf nojaf reopened this Feb 27, 2026
@nojaf nojaf enabled auto-merge February 27, 2026 07:28
@nojaf nojaf merged commit f74f00e into main Feb 27, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lambda with MultiLineLambdaClosingNewline is split weirdly

1 participant