Skip to content

Commit bd3a27e

Browse files
committed
Clear the module resolution cache when new @types appear
1 parent d01f4d1 commit bd3a27e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/server/editorServices.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,11 @@ namespace ts.server {
547547
}
548548
switch (response.kind) {
549549
case ActionSet:
550+
project.resolutionCache.clear();
550551
this.typingsCache.updateTypingsForProject(response.projectName, response.compilerOptions, response.typeAcquisition, response.unresolvedImports, response.typings);
551552
break;
552553
case ActionInvalidate:
554+
project.resolutionCache.clear();
553555
this.typingsCache.deleteTypingsForProject(response.projectName);
554556
break;
555557
}

0 commit comments

Comments
 (0)