Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show full Typescript errors #259

Closed
jods4 opened this issue Jun 10, 2021 · 2 comments
Closed

Show full Typescript errors #259

jods4 opened this issue Jun 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jods4
Copy link

jods4 commented Jun 10, 2021

This extension is awesome but I have one big problem with it: it only displays the first message of TS errors.

TS type system is hugely complex and it's sometimes quite hard to determine why two types are not compatible with each other.
Here's one example of Volar reporting a TS "incompatible types" error:
image

There's no more information in the "Problems" panel:
image

In regular .ts files, those errors would open into a deep nested tree of increasingly specific errors that explain why the two top level types are incompatible.

Those messages are horrible to read, but they are key to figuring out what goes on and being able to fix the code.

@johnsoncodehk johnsoncodehk added the enhancement New feature or request label Jun 11, 2021
@jods4
Copy link
Author

jods4 commented Jun 11, 2021

Thanks, that will be very helpful!

@johnsoncodehk
Copy link
Member

Thanks for your report. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants