zed icon indicating copy to clipboard operation
zed copied to clipboard

Pretty TypeScript errors

Open zisra opened this issue 1 year ago • 15 comments
trafficstars

Check for existing issues

  • [X] Completed

Describe the feature

TypeScript errors should be formatted in a similar fashion as pretty-ts-errors.

If applicable, add mockups / screenshots to help present your vision of the feature

image

image

zisra avatar Feb 15 '24 15:02 zisra

This plugin is a mandatory plugin for me in VScode. If Zed can incorporate it, that would be great, haha

d1y avatar Feb 15 '24 17:02 d1y

Hi there, I'm the creator of pretty-ts-errors I love Zed, and I would be happy to port it to Zed or collaborate on that. I know that currently, extensions aren't supported, but I can export the plugin as a TypeScript LSP, and it'll automatically be supported. The only thing that is missing from that is an option for advanced MD/MDX on hovers on Zed editor.

If someone on the Zed team thinks it's possible please reach me out 🙂

yoavbls avatar Mar 01 '24 07:03 yoavbls

Screenshot 2024-03-29 at 01 22 32

Might be right place to note this: when error message is too long, it doesn't wrap, nor scrolls right, so it is impossible to see whole message or copy error message to clipboard.

Pretty error messages might solve this it one go.

And on top of that: there is no way to close these errors (?). Unless editor is reloaded (?) or other error is opened.

coolemur avatar Mar 29 '24 00:03 coolemur

Enabling copy for TS errors would also be great. Currently only the code can be copied but not the error itself.

nckre avatar May 14 '24 06:05 nckre

Seems like extensions are a thing now - would love to see this!!

ethndotsh avatar Aug 06 '24 02:08 ethndotsh

@ethndotsh As far as I know extensions could be just themes and LSPs for now, we'll need the ability to add/edit diagnostics like VSCode allows + custom render for them

yoavbls avatar Aug 19 '24 21:08 yoavbls