csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Formatting Changes in Invocation Chains After Version 0.27.1

Open ludlyl opened this issue 7 months ago • 1 comments

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?

ludlyl avatar Jul 03 '24 15:07 ludlyl