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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(