Fix detecting default project when file is part for more than one project but not part of default configured project (eg because its output of that projet) (#38429)

Fixes #38366
This commit is contained in:
Sheetal Nandi
2020-05-12 10:16:59 -07:00
committed by GitHub
parent 3f06adf662
commit 5d6a5d04ea
5 changed files with 70 additions and 9 deletions

View File

@@ -1743,7 +1743,9 @@ namespace ts.server {
return project?.isSolution() ?
project.getDefaultChildProjectFromSolution(info) :
project;
project && projectContainsInfoDirectly(project, info) ?
project :
undefined;
}
/**