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

Truncate long declarations #16

Open
joshua-light opened this issue Jan 10, 2023 · 0 comments
Open

Truncate long declarations #16

joshua-light opened this issue Jan 10, 2023 · 0 comments
Labels
enhancement New feature or request markdown Issue related to the built-in Markdown renderer roslyn Issue related to the built-in Roslyn parser
Milestone

Comments

@joshua-light
Copy link
Member

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.

@joshua-light joshua-light added enhancement New feature or request markdown Issue related to the built-in Markdown renderer roslyn Issue related to the built-in Roslyn parser labels Jan 10, 2023
@joshua-light joshua-light added this to the 0.0.3 milestone Jan 10, 2023
@joshua-light joshua-light modified the milestones: 0.0.3, 0.0.4 Nov 27, 2023
@joshua-light joshua-light modified the milestones: 0.0.4, Backlog Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request markdown Issue related to the built-in Markdown renderer roslyn Issue related to the built-in Roslyn parser
Projects
None yet
Development

No branches or pull requests

1 participant