Skip to content

Commit a2f92aa

Browse files
committed
invalidate cached typings on add or remove file
1 parent 7132fe5 commit a2f92aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/server/project.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ namespace ts.server {
414414
removed.push(id);
415415
}
416416
}
417+
if (added.length > 0 || removed.length > 0) {
418+
this.projectService.typingsCache.invalidateCachedTypingsForProject(this);
419+
}
417420
this.lastReportedFileNames = currentFiles;
418421

419422
this.lastReportedFileNames = currentFiles;

0 commit comments

Comments
 (0)