Adding collapse all to OE (#23132)

This commit is contained in:
Aasim Khan
2023-05-16 09:20:51 -07:00
committed by GitHub
parent 20f409adca
commit d9220c809c
3 changed files with 33 additions and 2 deletions

View File

@@ -952,4 +952,12 @@ export class ServerTreeView extends Disposable implements IServerTreeView {
}
return actionContext;
}
public collapseAllConnections(): void {
const root = TreeUpdateUtils.getTreeInput(this._connectionManagementService)!;
const connections = ConnectionProfileGroup.getConnectionsInGroup(root);
connections.forEach(con => {
this._tree!.collapse(con, true);
});
}
}