Skip to content

Commit ada1d1e

Browse files
committed
ts.server.ProjectService.closeConfiguredProject returns true on success.
Fixes microsoft#17892 The if condition around the return value of that method in closeExternalProject indicates that this was the expected behavior.
1 parent 4c54323 commit ada1d1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/editorServices.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,11 +1686,13 @@ namespace ts.server {
16861686
}
16871687
}
16881688

1689-
private closeConfiguredProject(configFile: NormalizedPath): void {
1689+
private closeConfiguredProject(configFile: NormalizedPath): boolean {
16901690
const configuredProject = this.findConfiguredProjectByProjectName(configFile);
16911691
if (configuredProject && configuredProject.deleteOpenRef() === 0) {
16921692
this.removeProject(configuredProject);
1693+
return true;
16931694
}
1695+
return false;
16941696
}
16951697

16961698
closeExternalProject(uncheckedFileName: string, suppressRefresh = false): void {

0 commit comments

Comments
 (0)