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

fix: pass the right diagnostics list in transpileOnly mode #915

Closed
wants to merge 2 commits into from

Conversation

Weakky
Copy link
Contributor

@Weakky Weakky commented Nov 26, 2019

Description

The wrong diagnoticList is passed to reportTSError, thus making all errors lacking of any relevant stack trace in transpileOnly mode.

I think the origin of that problem is a simple typo. It's currently referencing a variable in the outer scope with a similar name.

@coveralls
Copy link

coveralls commented Nov 26, 2019

Coverage Status

Coverage decreased (-0.8%) to 83.268% when pulling f182562 on Weakky:fix/diagnostic-list into 4dbc15d on TypeStrong:master.

@coveralls
Copy link

coveralls commented Nov 26, 2019

Coverage Status

Coverage decreased (-0.008%) to 84.047% when pulling 00b258c on Weakky:fix/diagnostic-list into 4dbc15d on TypeStrong:master.

@blakeembrey
Copy link
Member

Thanks for the catch! Are you interested in adding a test case?

@blakeembrey
Copy link
Member

@Weakky Not sure if you can change the parent branch to 8.x too? If you can't I'll pick this branch across and commit it for you.

@Weakky
Copy link
Contributor Author

Weakky commented Nov 27, 2019

closing in favor of #917 to change the parent branch 👍

@Weakky Weakky closed this Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants