vscode-nushell-lang icon indicating copy to clipboard operation
vscode-nushell-lang copied to clipboard

Add an option to concise and prettify type hints

Open EmilyGraceSeville7cf opened this issue 2 years ago • 3 comments

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 avatar May 03 '23 21:05 EmilyGraceSeville7cf

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

EmilyGraceSeville7cf avatar May 03 '23 21:05 EmilyGraceSeville7cf

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.

fdncred avatar May 03 '23 21:05 fdncred

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 .... ;)

EmilyGraceSeville7cf avatar May 03 '23 21:05 EmilyGraceSeville7cf