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
51.03k stars 3.17k forks source link

Pretty TypeScript errors #7844

Open zisra opened 9 months ago

zisra commented 9 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 9 months ago

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

yoavbls commented 9 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 8 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 6 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 4 months ago

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

yoavbls commented 3 months 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

pierresisson commented 2 months ago

hello team :) have you any updates?

nezudevv commented 1 month ago

This would be a fantastic addition. I am also having a hard time reading the returned errors. Maybe its just a side effect of me being used to the vs code plugin 😅

dan-myles commented 1 month ago

Hello! Any updates on this? <3