Store the size of the project properly
(cherry picked from commit16c7bcfebb
) (cherry picked from commit8b3c54dbfb
)
This commit is contained in:
parent
afbe63ae99
commit
d69a18d9d9
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue