File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -473,11 +473,6 @@ namespace ts {
473
473
resolutionHost . getCachedDirectoryStructureHost ( ) . addOrDeleteFileOrDirectory ( fileOrDirectory , fileOrDirectoryPath ) ;
474
474
}
475
475
476
- // Ignore emits from the program
477
- if ( isEmittedFileOfProgram ( resolutionHost . getCurrentProgram ( ) , fileOrDirectory ) ) {
478
- return ;
479
- }
480
-
481
476
// If the files are added to project root or node_modules directory, always run through the invalidation process
482
477
// Otherwise run through invalidation only if adding to the immediate directory
483
478
if ( ! allFilesHaveInvalidatedResolution &&
@@ -581,6 +576,10 @@ namespace ts {
581
576
if ( ! isPathWithDefaultFailedLookupExtension ( fileOrDirectoryPath ) && ! customFailedLookupPaths . has ( fileOrDirectoryPath ) ) {
582
577
return false ;
583
578
}
579
+ // Ignore emits from the program
580
+ if ( isEmittedFileOfProgram ( resolutionHost . getCurrentProgram ( ) , fileOrDirectoryPath ) ) {
581
+ return false ;
582
+ }
584
583
// Resolution need to be invalidated if failed lookup location is same as the file or directory getting created
585
584
isChangedFailedLookupLocation = location => resolutionHost . toPath ( location ) === fileOrDirectoryPath ;
586
585
}
You can’t perform that action at this time.
0 commit comments