Update the type reference cache with correct project options (#44004)

This commit is contained in:
Sheetal Nandi
2021-05-07 16:58:41 -07:00
committed by GitHub
parent 42f0cf6ffc
commit e61d812cbb

View File

@@ -849,6 +849,7 @@ namespace ts {
state.projectCompilerOptions = config.options;
// Update module resolution cache if needed
state.moduleResolutionCache?.update(config.options);
state.typeReferenceDirectiveResolutionCache?.update(config.options);
// Create program
program = host.createProgram(