We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6a80b commit 4c1e8f2Copy full SHA for 4c1e8f2
src/compiler/resolutionCache.ts
@@ -709,8 +709,9 @@ namespace ts {
709
710
function watchAffectingLocationsOfResolution(resolution: ResolutionWithFailedLookupLocations, addToResolutionsWithOnlyAffectingLocations: boolean) {
711
Debug.assert(!!resolution.refCount);
712
- if (addToResolutionsWithOnlyAffectingLocations) resolutionsWithOnlyAffectingLocations.push(resolution);
713
const { affectingLocations } = resolution;
+ if (!affectingLocations.length) return;
714
+ if (addToResolutionsWithOnlyAffectingLocations) resolutionsWithOnlyAffectingLocations.push(resolution);
715
// Watch package json
716
for (const affectingLocation of affectingLocations) {
717
createFileWatcherOfAffectingLocation(affectingLocation);
0 commit comments