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

Add an option to concise and prettify type hints #125

Open
EmilyGraceSeville7cf opened this issue May 3, 2023 · 3 comments
Open

Add an option to concise and prettify type hints #125

EmilyGraceSeville7cf opened this issue May 3, 2023 · 3 comments

Comments

@EmilyGraceSeville7cf
Copy link
Contributor

image

It's impossible to read such hints like this. I suggest to add two extension settings:

  • To limit nest level for such hints. To show something like record<...> when instead of ... there are nested records or lists.
  • To format type hints when they are nested like this:
record<
  bla: list<int>
  bla: string
>
@EmilyGraceSeville7cf
Copy link
Contributor Author

More ideas you can find in TypeScript Just Got SO MUCH BETTER video. 😸

@fdncred
Copy link
Collaborator

fdncred commented May 3, 2023

These hints come in from server.ts, so we can intercept them and reformat them like you're suggesting. I'm up for it. What would be nice is to show and abbreviated view but also show a detail view in the hover perhaps.

@EmilyGraceSeville7cf
Copy link
Contributor Author

What would be nice is to show and abbreviated view but also show a detail view in the hover perhaps.

Or on the click on .... ;)

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