Skip to content

Commit

Permalink
Fix revealing attached database (#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger committed Jan 12, 2023
1 parent d13ad76 commit f4601ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/api/DatabaseTreeItemInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export class DatabaseTreeItemInternal extends DatabaseAccountTreeItemInternal im
const accountNode: MongoAccountTreeItem | DocDBAccountTreeItemBase | PostgresServerTreeItem = await this.getAccountNode(context);
if (!this._dbNode) {
const databaseId = `${accountNode.fullId}/${this.databaseName}`;
this._dbNode = await ext.rgApi.appResourceTree.findTreeItem(databaseId, context);
this._dbNode = await ext.rgApi.workspaceResourceTree.findTreeItem(databaseId, context);
}

await ext.rgApi.appResourceTreeView.reveal(this._dbNode || accountNode);
await ext.rgApi.workspaceResourceTreeView.reveal(this._dbNode || accountNode);
});
}
}

0 comments on commit f4601ed

Please sign in to comment.