You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/watchPublic.ts
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,6 @@ namespace ts {
283
283
let parsedConfigs: ESMap<Path, ParsedConfig> | undefined; // Parsed commandline and watching cached for referenced projects
284
284
let sharedExtendedConfigFileWatchers: ESMap<Path, SharedExtendedConfigFileWatcher<Path>>; // Map of file watchers for extended files, shared between different referenced projects
285
285
let extendedConfigCache = host.extendedConfigCache; // Cache for extended config evaluation
286
-
let changesAffectResolution = false; // Flag for indicating non-config changes affect module resolution
287
286
let reportFileChangeDetectedOnCreateProgram = false; // True if synchronizeProgram should report "File change detected..." when a new program is created
288
287
289
288
const sourceFilesCache = new Map<string, HostFileInfo>(); // Cache that stores the source file and version info
@@ -434,13 +433,13 @@ namespace ts {
434
433
const program = getCurrentBuilderProgram();
435
434
if (hasChangedCompilerOptions) {
436
435
newLine = updateNewLine();
437
-
if (program && (changesAffectResolution || changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions))) {
436
+
if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) {
438
437
resolutionCache.clear();
439
438
}
440
439
}
441
440
442
441
// All resolutions are invalid if user provided resolutions
0 commit comments