Store the size of the project properly

(cherry picked from commit 16c7bcfebb)
This commit is contained in:
Ryan Cavanaugh authored and Bill Ticehurst committed 2017-03-22 19:27:27 -07:00
1 parent 01e619ba53
commit 8b3c54dbfb
1 file changed
+2 -2
+2 -2
View File
@@ -873,14 +873,14 @@ namespace ts.server {
continue;
}
totalNonTsFileSize += this.host.getFileSize(fileName);
if (totalNonTsFileSize > availableSpace) {
if (totalNonTsFileSize > maxProgramSizeForNonTsFiles) {
this.projectToSizeMap[name] = totalNonTsFileSize;
return true;
}
}
this.projectToSizeMap[name] = totalNonTsFileSize;
return false;
return totalNonTsFileSize < availableSpace;
}
private createAndAddExternalProject(projectFileName: string, files: protocol.ExternalFile[], options: protocol.ExternalProjectCompilerOptions, typeAcquisition: TypeAcquisition) {