Merge pull request #24816 from Microsoft/updateGraphBeforeErrorChecking

Updates the graph before checking if file is present in project for error checking
This commit is contained in:
Mohamed Hegazy authored and GitHub committed 2018-06-11 13:15:40 -07:00
commit 3cd6db76ef
2 files changed
+139 -9

No files matched your search

+2
View File
@@ -511,6 +511,8 @@ namespace ts.server {
const { fileName, project } = checkList[index];
index++;
// Ensure the project is upto date before checking if this file is present in the project
project.updateGraph();
if (!project.containsFile(fileName, requireOpen)) {
return;
}