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
2018-06-11 13:15:40 -07:00
committed by GitHub
2 changed files with 139 additions and 9 deletions

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;
}