Skip to content

Commented line inside of record should be indented at the same level as the fields #2482

Description

@MangelMaxime

Issue created from fantomas-online

Code

type UserInfo = {
    /// A unique identifier assigned to this user.
    UserId: UserId.T
    AcsId: AcsId.T
    // Roles: Role list
    // NetworkStatus: UserStatus
    // ancillary info
    // Descr: UserDetails
}

Result

type UserInfo = {
    /// A unique identifier assigned to this user.
    UserId: UserId.T
    AcsId: AcsId.T
// Roles: Role list
// NetworkStatus: UserStatus
// ancillary info
// Descr: UserDetails
}

Problem description

Commented line inside of record should be indented at the same level as the fields

Perhaps related to #1233

Extra information

  • The formatted result breaks my code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas master branch at 2022-09-07T06:05:21Z - b0916a4

    { config with
                ExperimentalStroustrupStyle = true }

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions