Skip to content

Conversation

sheetalkamat
Copy link
Member

No description provided.

…d as they are computed as part of semantic diagnostics and cached
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the "errors" state in buildInfo was incorrectly encoded when bind diagnostics are present but ignored (e.g., when skipLibCheck is enabled). The fix prevents bind diagnostics from being considered when determining if the build has errors for state tracking purposes.

  • Removes bind diagnostics check from the ensureHasErrorsForState function
  • Adds a test case to verify proper handling of ignored bind diagnostics
  • Updates baseline files to reflect the corrected behavior

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
internal/execute/incremental/program.go Removes the bind diagnostics check from error state determination
internal/execute/tsctests/tsc_test.go Adds test case for bind diagnostics that should be ignored
testdata/baselines/reference/tsc/incremental/when-there-is-bind-diagnostics-thats-ignored.js New baseline file showing expected output for the test case

@sheetalkamat sheetalkamat added this pull request to the merge queue Sep 10, 2025
Merged via the queue into main with commit 806c619 Sep 10, 2025
22 checks passed
@sheetalkamat sheetalkamat deleted the bindDiagnostics branch September 10, 2025 23:04
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.

3 participants