Skip to content

Formatting Changes in Invocation Chains After Version 0.27.1 #1298

@ludlyl

Description

@ludlyl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions