Store the size of the project properly
This commit is contained in:
parent
456614f7e0
commit
16c7bcfebb
1 changed files with 2 additions and 2 deletions
|
@ -872,14 +872,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