Skip to content

Conversation

@dsherret
Copy link
Contributor

@dsherret dsherret commented Mar 21, 2023

With --allowImportingTsExtensions it was never using the build info because it wouldn't store "allowImportingTsExtensions" in the buildinfo file.

I'm not sure how to write a test for this as it doesn't seem easily unit testable. Some guidance would be helpful if you'd like a test.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Mar 21, 2023
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

const optionInfo = optionsNameMap.get(name.toLowerCase());
if (optionInfo?.affectsBuildInfo) {
// all semantic diagnostics affect build info
if (optionInfo && (optionInfo.affectsBuildInfo || optionInfo.affectsSemanticDiagnostics)) {
Copy link
Member

Choose a reason for hiding this comment

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

Lets not change this. You can assert instead that if option.affectsBuildInfo is not true then affectsSemanticDiagnostics is not true either

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted and moved this to an assertion in a unit test.

@dsherret dsherret requested review from sheetalkamat and removed request for andrewbranch March 21, 2023 22:34
@dsherret
Copy link
Contributor Author

(Side note: The removal of Andrew as a reviewer was unintentional. I'm not sure if GH automatically did that)

@sheetalkamat sheetalkamat merged commit 1761a67 into microsoft:main Mar 22, 2023
@dsherret dsherret deleted the perf_ensure_semantic_diagnostics_build_info branch March 22, 2023 17:25
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants