Return configured project being closed by config file

This commit is contained in:
Sheetal Nandi 2017-09-07 14:48:16 -07:00
parent 29e93c38a5
commit b179cd1e1c

View File

@ -1979,11 +1979,12 @@ namespace ts.server {
}
}
private closeConfiguredProject(configFile: NormalizedPath): void {
private closeConfiguredProject(configFile: NormalizedPath) {
const configuredProject = this.findConfiguredProjectByProjectName(configFile);
if (configuredProject && configuredProject.deleteOpenRef() === 0) {
this.removeProject(configuredProject);
}
return configuredProject;
}
closeExternalProject(uncheckedFileName: string, suppressRefresh = false): void {