Skip to content

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

Merged
hediet merged 2 commits intomicrosoft:mainfrom
jakebailey:emit-file-diagnostics
May 30, 2024
Merged

Call clearFiles on internal EmitOutput diagnostics, pass args down#4482
hediet merged 2 commits intomicrosoft:mainfrom
jakebailey:emit-file-diagnostics

Conversation

@jakebailey
Copy link
Copy Markdown
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
Copy Markdown
Member

hediet commented May 30, 2024

Thanks!

@jakebailey
Copy link
Copy Markdown
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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants