We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3077f8 commit 816ddc4Copy full SHA for 816ddc4
packages/language-server/src/plugins/typescript/module-loader.ts
@@ -73,10 +73,7 @@ class ModuleResolutionCache {
73
}
74
const separatorIndex = key.indexOf(CACHE_KEY_SEPARATOR);
75
const filePart = key.slice(separatorIndex + CACHE_KEY_SEPARATOR.length);
76
- if (
77
- filePart === fileNameWithoutEnding ||
78
- filePart.includes(`/${fileNameWithoutEnding}.`)
79
- ) {
+ if (filePart.includes(fileNameWithoutEnding)) {
80
const containingFile = key.slice(0, separatorIndex);
81
this.cache.delete(key);
82
this.pendingInvalidations.add(containingFile);
0 commit comments