Skip to content

Commit

Permalink
Fix incorrect setting of nonRecursive watch field (#53675)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Apr 5, 2023
1 parent f243b98 commit d07b1b9
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 158 deletions.
4 changes: 2 additions & 2 deletions src/compiler/resolutionCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export function getDirectoryToWatchFailedLookupLocation(
return {
dir: rootDir!,
dirPath: rootPath!,
nonRecursive: false
nonRecursive: true
};
}
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d07b1b9

Please sign in to comment.