mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-31 08:07:10 -05:00
Fix incorrect setting of nonRecursive watch field (#53675)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user