Skip to content

Commit 816ddc4

Browse files
committed
chore: revert filePart check for now
1 parent a3077f8 commit 816ddc4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/language-server/src/plugins/typescript/module-loader.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ class ModuleResolutionCache {
7373
}
7474
const separatorIndex = key.indexOf(CACHE_KEY_SEPARATOR);
7575
const filePart = key.slice(separatorIndex + CACHE_KEY_SEPARATOR.length);
76-
if (
77-
filePart === fileNameWithoutEnding ||
78-
filePart.includes(`/${fileNameWithoutEnding}.`)
79-
) {
76+
if (filePart.includes(fileNameWithoutEnding)) {
8077
const containingFile = key.slice(0, separatorIndex);
8178
this.cache.delete(key);
8279
this.pendingInvalidations.add(containingFile);

0 commit comments

Comments
 (0)