yoavbls/pretty-ts-errors

How to remove the default Typescript tooltip hover

MehdiRaash opened this issue ยท 10 comments

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.

+1

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

I'm pretty sure this is not supported by the VS Code API yet ๐Ÿคฎ.

I would post this issue in the VSCode repository :)

+1 !!

(thanks for the extension ๐Ÿ”ฅ)

btmnk commented

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.

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

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

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

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:
#3