yoavbls / pretty-ts-errors

🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors
MIT License
13.29k stars 89 forks source link

How to remove the default Typescript tooltip hover #19

Closed MehdiRaash closed 1 year ago

MehdiRaash commented 1 year ago

Thanks for making such a nice library, I know my question is not specifically related to this repo, but I'm guessing you guys might know the answer. I would like to remove the duplicate .ts error on hover, Do you have any idea around it?

Screenshot 2023-04-18 at 12 44 25 AM

As you know the fist line of the error is almost redundant.

toanbku commented 1 year ago

+1

sherif414 commented 1 year ago

+1 that's the first thing i thought about.

multiplehats commented 1 year ago

I'm pretty sure this is not supported by the VS Code API yet 🤮.

crydotsnake commented 1 year ago

I would post this issue in the VSCode repository :)

antoineharel commented 1 year ago

+1 !!

(thanks for the extension 🔥)

btmnk commented 1 year ago

It would already be a big improvement if we could change the order. Does anyone know if that's possible? I wouldn't mind if the gibberish errors are at the bottom and the readable one is at the top.

sherif414 commented 1 year ago

It would already be a big improvement if we could change the order. Does anyone know if that's possible? I wouldn't mind if the gibberish errors are at the bottom and the readable one is at the top.

i have this by default

czy0729 commented 1 year ago

It would already be a big improvement if we could change the order. Does anyone know if that's possible? I wouldn't mind if the gibberish errors are at the bottom and the readable one is at the top.

i also at the top by default, it might be an issue caused by other plugins in your vscode?

btmnk commented 1 year ago

It would already be a big improvement if we could change the order. Does anyone know if that's possible? I wouldn't mind if the gibberish errors are at the bottom and the readable one is at the top.

i also at the top by default, it might be an issue caused by other plugins in your vscode?

Hmm weird, I checked If I had any settings that might cause this but couldn't find anything. For me it first shows eslint errors, then ts errors and after that the extension error is shown. For a colleague it also only shows the extension error (no default error at all) but I'm not sure what the cause could be.. Afaik I don't have any other extensions that would temper with the error tooltip..

yoavbls commented 1 year ago

Thank you for opening this issue! It's currently not supported by VSCode APIs, but @johnsoncodehk got a break through there and made a POC of service language plugin that could do it. Let's continue to talk about the order of the messages and the option to hide the original errors there: https://github.com/yoavbls/pretty-ts-errors/issues/3