Skip to content

Truncate long declarations #16

Description

@joshua-light

Some of the record declarations are already too long, e.g.:

public record DocProperty(string Name, string Declaration, AccessModifier Access, DocComment Comment) : DocMember(Name, Declaration, Access, Comment)

We should consider adding some truncating logic that will check if the resulting definition is too long. For instance, in the snippet above there could be a newline inserted like this:

public record DocProperty(string Name, string Declaration, AccessModifier Access, DocComment Comment)
    : DocMember(Name, Declaration, Access, Comment)

Note: we need to consider leading spaces count in order to format the new line correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmarkdownIssue related to the built-in Markdown rendererroslynIssue related to the built-in Roslyn parser

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions