Do not remove inferred project immediately and try to reuse it on next file open

This commit is contained in:
Sheetal Nandi
2018-04-20 13:38:15 -07:00
parent 616458261c
commit d6dfd9a217
6 changed files with 225 additions and 107 deletions

View File

@@ -460,7 +460,7 @@ namespace ts.server {
}
isOrphan() {
return this.containingProjects.length === 0;
return !forEach(this.containingProjects, p => !p.isOrphan());
}
/**