Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

fix: tsetse checker must be initialized with latest program #506

Closed
wants to merge 1 commit into from

Conversation

kyliau
Copy link
Contributor

@kyliau kyliau commented Sep 1, 2020

Since ts.Program is an immutable data structure, the tsetse checker
must get hold of a new instance of the ts.Program every time
getSemanticDiagnostics is called. There is no way to do this currently,
so just create a new tsetse Checker instance every time.

Attention Googlers: This repo has its Source of Truth in Piper. After sending a PR, you can follow http://g3doc/third_party/bazel_rules/rules_typescript/README.google.md#merging-changes to get your change merged.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Since ts.Program is an immutable data structure, the tsetse checker
must get hold of a new instance of the ts.Program every time
`getSemanticDiagnostics` is called. There is no way to do this currently,
so just create a new tsetse Checker instance every time.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants