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

Show complex type across multiple lines #4

Open
0xdevalias opened this issue Jan 1, 2025 · 2 comments
Open

Show complex type across multiple lines #4

0xdevalias opened this issue Jan 1, 2025 · 2 comments

Comments

@0xdevalias
Copy link

0xdevalias commented Jan 1, 2025

When I have a complex type, like a union of zod schemas, the output from WiTT gets truncated as it's a single line hint:

image

It would be cool if we were able to get something similar to the multi-line hover output:

image

Or the hover + cmd output:

image

And even better if it was able to be pretty-printed, and not truncated (eg. none of those /* and more */, ... 4 more ..., etc truncations)

@0xdevalias 0xdevalias changed the title Show complex type across multiple lines? Show complex type across multiple lines Jan 1, 2025
@chwoerz
Copy link
Contributor

chwoerz commented Jan 1, 2025

I need to look if there is a way for multiline outputs. When I checked last, it wasn't supported sadly.

@0xdevalias
Copy link
Author

0xdevalias commented Jan 1, 2025

@chwoerz Oh, true.. hopefully there is now 🤞🏻

It might be slightly OOS of this plugin if there's no inline way to display multiple lines.. but whether this plugin or another, if there is any way (even as a similar hover dialog) to be able to see a fully non-truncated/pretty printed type to work around Webstorm's current limitations in that regard.. that would be a lifesaver

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

No branches or pull requests

2 participants