File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -796,6 +796,9 @@ export function createResolutionCache(
796
796
}
797
797
798
798
function getValidResolution < T extends ResolutionWithFailedLookupLocations > ( resolution : T | undefined ) {
799
+ // TODO: (sheetal) this isnt correct because after the new resolution is calculated and its still unresolved with globalCachePass:
800
+ // it will mark new resolution as invalidated as well
801
+ // (unresolvedResolutionsWithGlobalCachePassAreInvalidated && resolution.globalCacheResolution && isUnresolvedOrResolvedToJs(resolution as ResolvedModuleWithFailedLookupLocations));
799
802
return isInvalidatedResolution ( resolution ) ? undefined : resolution ;
800
803
}
801
804
@@ -1395,6 +1398,8 @@ export function createResolutionCache(
1395
1398
1396
1399
// filePath is for the projectReference and the containing file is from this project reference, invalidate the resolution
1397
1400
resolvedProjectReference . commandLine . fileNames . forEach ( f => removeResolutionsOfFile ( resolutionHost . toPath ( f ) ) ) ;
1401
+
1402
+ // TODO: (sheetal) this is not correct as we would want to instead update to re-evaluate redirected-references
1398
1403
}
1399
1404
1400
1405
function removeResolutionsOfFile ( filePath : Path , syncDirWatcherRemove ?: boolean ) {
You can’t perform that action at this time.
0 commit comments