Limit the resolution invalidation to max number of files as invalidation for larger cache might take more time than to just recalculate resolutions

This commit is contained in:
Sheetal Nandi
2017-09-08 12:10:47 -07:00
parent b179cd1e1c
commit 67f9533c67
6 changed files with 212 additions and 113 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ namespace ts.server {
}
const isInfoRoot = p.isRoot(this);
// detach is unnecessary since we'll clean the list of containing projects anyways
p.removeFile(this, /*detachFromProjects*/ false);
p.removeFile(this, /*fileExists*/ false, /*detachFromProjects*/ false);
// If the info was for the external or configured project's root,
// add missing file as the root
if (isInfoRoot && p.projectKind !== ProjectKind.Inferred) {