mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fixing edited connections not working for root in Async Server Tree (#22580)
* Fixing edited connections not working for root * Fixing comment
This commit is contained in:
@@ -106,7 +106,9 @@ export class AsyncServerTree extends WorkbenchAsyncDataTree<ConnectionProfileGro
|
|||||||
while (stack.length > 0) {
|
while (stack.length > 0) {
|
||||||
const node = stack.pop();
|
const node = stack.pop();
|
||||||
if (node) {
|
if (node) {
|
||||||
if (!this.isCollapsed(node.element)) {
|
// The root of the tree is a special case connection group that is always expanded. It is not rendered
|
||||||
|
// and this.isCollapsed returns an error when called on it. So we need to check for it explicitly.
|
||||||
|
if (node === this.root || !this.isCollapsed(node.element)) {
|
||||||
expanded.push(node.element);
|
expanded.push(node.element);
|
||||||
if (node.children) {
|
if (node.children) {
|
||||||
node.children.forEach(child => stack.push(child));
|
node.children.forEach(child => stack.push(child));
|
||||||
|
|||||||
Reference in New Issue
Block a user