Skip to content

Get preEmit diagnostics from TypeScript before transforming#1301

Merged
Perryvw merged 1 commit intomasterfrom
pre-emit-diagnostics
Jul 8, 2022
Merged

Get preEmit diagnostics from TypeScript before transforming#1301
Perryvw merged 1 commit intomasterfrom
pre-emit-diagnostics

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented Jul 7, 2022

Apparently some of the actions we do while transforming can affect the state of the TS type checker, resulting in extra (nonsense) diagnostics being returned when calling getPreEmitDiagnostics.

To fix, we get the preEmitDiagnostics from TS before we transform, avoiding those diagnostics.

Fixes #1299, #1058

@Perryvw Perryvw merged commit 4d49354 into master Jul 8, 2022
@Perryvw Perryvw deleted the pre-emit-diagnostics branch July 8, 2022 14:00
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.

{@link https...} inside a @remarks causes error TS2304: Cannot find name 'https'

2 participants