mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Handle the fact that noResolveResolution resolution is reused (#39889)
Fixes #39795
This commit is contained in:
@@ -568,7 +568,7 @@ namespace ts {
|
||||
}
|
||||
else {
|
||||
resolution.refCount = 1;
|
||||
Debug.assert(resolution.files === undefined);
|
||||
Debug.assert(length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet
|
||||
if (isExternalModuleNameRelative(name)) {
|
||||
watchFailedLookupLocationOfResolution(resolution);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user