Remove disposable from connection (#22687)

* Remove disposable from connection

* Remove from group
This commit is contained in:
Charles Gagnon
2023-04-11 15:27:01 -07:00
committed by GitHub
parent 219bdabfb2
commit df88d881c5
11 changed files with 10 additions and 63 deletions

View File

@@ -858,9 +858,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
public hasRegisteredServers(): boolean {
const groups: ConnectionProfileGroup[] = this.getConnectionGroups();
const hasRegisteredServers: boolean = this.doHasRegisteredServers(groups);
groups.forEach(cpg => cpg.dispose());
return hasRegisteredServers;
return this.doHasRegisteredServers(groups);
}
private doHasRegisteredServers(root: ConnectionProfileGroup[]): boolean {