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

Pretty print types in Default theme #2067

Merged
merged 3 commits into from Oct 10, 2022

Conversation

captain-torch
Copy link
Contributor

I faced same issue as mentioned here - large types looks ugly because of no line wraps or indentation.

I offer an improvement for DefaultTheme that allows to render types as formatted tree using DefaultThemeRenderContext as storage when recursively rendering nesting types.

Example of working:

before

after

I think this feature should be controlled with some additional configuration options (at least, use this feature or no and indent spaces quantity), but I'm not sure about your policy of adding theme-related options.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Oct 4, 2022

Haven't looked too closely, but; can this flag be local to the type renderer, rather than global for potential misuse by other templates?

@Gerrit0 Gerrit0 merged commit 96f6e3e into TypeStrong:master Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants