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

Call clearFiles on internal EmitOutput diagnostics, pass args down #4482

Merged
merged 2 commits into from
May 30, 2024

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Apr 25, 2024

Emitting produces diagnostics. Unfortunately, these are marked as internal so were missed (microsoft/TypeScript#58317)

This change enables the playground to handle emit errors without crashing.

Also, pass args down so we can always get dts emit even on error.

@jakebailey jakebailey changed the title Call clearFiles on internal EmitOutput diagnostics Call clearFiles on internal EmitOutput diagnostics, pass args down Apr 25, 2024
@hediet hediet enabled auto-merge May 30, 2024 16:26
@hediet hediet added this to the May 2024 milestone May 30, 2024
@hediet
Copy link
Member

hediet commented May 30, 2024

Thanks!

@jakebailey
Copy link
Member Author

The next version of TS will have this be formally public, so some of the cruft will be able to go away when that upgrade happens (but this PR works for older versions too)

@hediet hediet merged commit c49fdf9 into microsoft:main May 30, 2024
3 checks passed
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