Skip to content

Commit 5020326

Browse files
author
zhengbli
committed
Add Comments
2 parents 2dd71e0 + 439c14f commit 5020326

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/server/session.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,9 @@ namespace ts.server {
872872
let normalizedFileName = ts.normalizePath(fileName);
873873
return { fileName: normalizedFileName, project };
874874
});
875-
this.updateErrorCheck(checkList, this.changeSeq, (n) => n == this.changeSeq, delay, 200, false);
875+
// Project level error analysis runs on background files too, therefore
876+
// doesn't require the file to be opened
877+
this.updateErrorCheck(checkList, this.changeSeq, (n) => n == this.changeSeq, delay, 200, /*requireOpen*/ false);
876878
}
877879
}
878880

0 commit comments

Comments
 (0)