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 fcff44f commit 4abe9b3Copy full SHA for 4abe9b3
packages/language-server/src/plugins/typescript/module-loader.ts
@@ -64,8 +64,11 @@ class ModuleResolutionCache {
64
const fileNameWithoutEnding =
65
getLastPartOfPath(this.getCanonicalFileName(path)).split('.').shift() || '';
66
this.cache.forEach((val, key) => {
67
+ if (val) {
68
+ return;
69
+ }
70
const [containingFile, moduleName = ''] = key.split(CACHE_KEY_SEPARATOR);
- if (!val && moduleName.includes(fileNameWithoutEnding)) {
71
+ if (moduleName.includes(fileNameWithoutEnding)) {
72
this.cache.delete(key);
73
this.pendingInvalidations.add(containingFile);
74
}
0 commit comments