Skip to content

Commit e5313bd

Browse files
RyanCavanaughbillti
authored andcommitted
Don't add in size of disabled projects
(cherry picked from commit 2721a8c) (cherry picked from commit 1696df6)
1 parent 390e632 commit e5313bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ namespace ts.server {
874874
}
875875
totalNonTsFileSize += this.host.getFileSize(fileName);
876876
if (totalNonTsFileSize > maxProgramSizeForNonTsFiles) {
877-
this.projectToSizeMap[name] = totalNonTsFileSize;
877+
// Keep the size as zero since it's disabled
878878
return true;
879879
}
880880
}

0 commit comments

Comments
 (0)