Remove the configured project if on next open file if it has no open files instead of immediately when closing last open file

This commit is contained in:
Sheetal Nandi
2017-08-31 17:58:09 -07:00
parent 8d5d4c2a0e
commit 9e5e20c80f
2 changed files with 17 additions and 4 deletions

View File

@@ -1311,6 +1311,10 @@ namespace ts.server {
return this.openRefCount;
}
hasOpenRef() {
return !!this.openRefCount;
}
getEffectiveTypeRoots() {
return getEffectiveTypeRoots(this.getCompilationSettings(), this.partialSystem) || [];
}