Fix incorrect setting of nonRecursive watch field (#53675)

This commit is contained in:
Sheetal Nandi
2023-04-05 14:17:52 -07:00
committed by GitHub
parent f243b987af
commit d07b1b93ab
5 changed files with 158 additions and 158 deletions

View File

@@ -302,7 +302,7 @@ export function getDirectoryToWatchFailedLookupLocation(
return {
dir: rootDir!,
dirPath: rootPath!,
nonRecursive: false
nonRecursive: true
};
}
}
@@ -870,7 +870,7 @@ export function createResolutionCache(resolutionHost: ResolutionCacheHost, rootD
customFailedLookupPaths.set(failedLookupLocationPath, refCount + 1);
}
if (dirPath === rootPath) {
Debug.assert(!nonRecursive);
Debug.assert(nonRecursive);
setAtRoot = true;
}
else {