We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1cd50 commit 2118de0Copy full SHA for 2118de0
1 file changed
src/compiler/program.ts
@@ -643,13 +643,11 @@ namespace ts {
643
// there is an old program, check if we can reuse its structure
644
const oldRootNames = oldProgram.getRootFileNames();
645
if (!arrayIsEqualTo(oldRootNames, rootNames)) {
646
- oldProgram.structureIsReused = StructureIsReused.Not;
647
- return StructureIsReused.Not;
+ return oldProgram.structureIsReused = StructureIsReused.Not;
648
}
649
650
if (!arrayIsEqualTo(options.types, oldOptions.types)) {
651
652
653
654
655
// check if program source files has changed in the way that can affect structure of the program
0 commit comments