There is no need to ensure project structure when tryiong to get inferred project

The project operations will validate if its valid anyways
This commit is contained in:
Sheetal Nandi
2018-04-03 13:12:37 -07:00
parent e304178c65
commit 62c6fe2ccc
2 changed files with 3 additions and 3 deletions

View File

@@ -642,7 +642,6 @@ namespace ts.server {
return undefined;
}
if (isInferredProjectName(projectName)) {
this.ensureProjectStructuresUptoDate();
return findProjectByName(projectName, this.inferredProjects);
}
return this.findExternalProjectByProjectName(projectName) || this.findConfiguredProjectByProjectName(toNormalizedPath(projectName));