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

Formatting Changes in Invocation Chains After Version 0.27.1 #1298

Open
ludlyl opened this issue Jul 3, 2024 · 1 comment · May be fixed by #1313
Open

Formatting Changes in Invocation Chains After Version 0.27.1 #1298

ludlyl opened this issue Jul 3, 2024 · 1 comment · May be fixed by #1313
Milestone

Comments

@ludlyl
Copy link

ludlyl commented Jul 3, 2024

Input:

var couponCampaign = await dbContext.CouponCampaigns
            .Where(c => c.Claims!.All(cl => cl.UserId != userId))
            .Where(c => c.StartDate >= DateTimeOffset.UtcNow)
            .FirstOrThrowAsync(c => c.Id == couponCampaignId);
var couponCampaign = await dbContext
            .CouponCampaigns
            .Where(c => c.Claims!.All(cl => cl.UserId != userId))
            .Where(c => c.StartDate >= DateTimeOffset.UtcNow)
            .FirstOrThrowAsync(c => c.Id == couponCampaignId);

Output:

var couponCampaign = await dbContext
            .CouponCampaigns.Where(c => c.Claims!.All(cl => cl.UserId != userId))
            .Where(c => c.StartDate >= DateTimeOffset.UtcNow)
            .FirstOrThrowAsync(c => c.Id == couponCampaignId);

Expected behavior:

The formatting should allow the previous styles, preserving readability and the structured line breaks.

Is there any way to go back to one of the old styles without downgrading the version?

@belav
Copy link
Owner

belav commented Jul 3, 2024

Is there any way to go back to one of the old styles without downgrading the version?

There is no way to do that.

This change may have been an unintended side effect of something else that got fixed, I'll take a look at it.

@belav belav added this to the Planned milestone Jul 3, 2024
@flostellbrink flostellbrink linked a pull request Jul 29, 2024 that will close this issue
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 a pull request may close this issue.

2 participants