Store the size of the project properly
(cherry picked from commit 16c7bcfebb
)
This commit is contained in:
parent
01e619ba53
commit
8b3c54dbfb
1 changed files with 2 additions and 2 deletions
|
@ -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