zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.84k stars 2.68k forks source link

Pretty TypeScript errors #7844

Open zisra opened 7 months ago

zisra commented 7 months ago

Check for existing issues

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

d1y commented 7 months ago

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

yoavbls commented 6 months ago

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 🙂

coolemur commented 5 months ago
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.

nckre commented 4 months ago

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

ethndotsh commented 1 month ago

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

yoavbls commented 3 weeks ago

@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