invalidate cached typings on add or remove file

This commit is contained in:
Jason Ramsay 2016-08-29 15:44:33 -07:00
parent 7132fe5112
commit a2f92aa583

View File

@ -414,6 +414,9 @@ namespace ts.server {
removed.push(id);
}
}
if (added.length > 0 || removed.length > 0) {
this.projectService.typingsCache.invalidateCachedTypingsForProject(this);
}
this.lastReportedFileNames = currentFiles;
this.lastReportedFileNames = currentFiles;