Skip to content

Commit d07b1b9

Browse files
authored
Fix incorrect setting of nonRecursive watch field (#53675)
1 parent f243b98 commit d07b1b9

5 files changed

+158
-158
lines changed

src/compiler/resolutionCache.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export function getDirectoryToWatchFailedLookupLocation(
302302
return {
303303
dir: rootDir!,
304304
dirPath: rootPath!,
305-
nonRecursive: false
305+
nonRecursive: true
306306
};
307307
}
308308
}
@@ -870,7 +870,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD
870870
customFailedLookupPaths.set(failedLookupLocationPath, refCount + 1);
871871
}
872872
if (dirPath === rootPath) {
873-
Debug.assert(!nonRecursive);
873+
Debug.assert(nonRecursive);
874874
setAtRoot = true;
875875
}
876876
else {

0 commit comments

Comments
 (0)