Skip to content

Commit 6b92cca

Browse files
author
Benjamin Lichtman
committed
Respond to CR
1 parent a30cacb commit 6b92cca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/resolutionCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ namespace ts {
716716
}
717717
// prevent saving an open file from over-eagerly triggering invalidation
718718
if (resolutionHost.fileIsOpen(fileOrDirectoryPath)) {
719-
return;
719+
return false;
720720
}
721721
// Ignore emits from the program
722722
if (isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {

src/compiler/watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ namespace ts {
691691
hasChangedAutomaticTypeDirectiveNames = true;
692692
scheduleProgramUpdate();
693693
};
694-
compilerHost.fileIsOpen = () => false;
694+
compilerHost.fileIsOpen = returnFalse;
695695
compilerHost.maxNumberOfFilesToIterateForInvalidation = host.maxNumberOfFilesToIterateForInvalidation;
696696
compilerHost.getCurrentProgram = getCurrentProgram;
697697
compilerHost.writeLog = writeLog;

0 commit comments

Comments
 (0)