Skip to content

Commit eef0505

Browse files
RyanCavanaughbillti
authored andcommitted
Store diabled projects as 0
(cherry picked from commit e9e7271) (cherry picked from commit 35e7717)
1 parent e5313bd commit eef0505

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/server/editorServices.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,12 @@ namespace ts.server {
879879
}
880880
}
881881

882+
if (totalNonTsFileSize > availableSpace) {
883+
return true;
884+
}
885+
882886
this.projectToSizeMap[name] = totalNonTsFileSize;
883-
return totalNonTsFileSize > availableSpace;
887+
return false;
884888
}
885889

886890
private createAndAddExternalProject(projectFileName: string, files: protocol.ExternalFile[], options: protocol.ExternalProjectCompilerOptions, typeAcquisition: TypeAcquisition) {

0 commit comments

Comments
 (0)