fix(quick-open): index grouped database objects

This commit is contained in:
t8y2 committed 2026-07-11 22:45:04 +08:00
1 parent bfdd7e5b1a
commit ead9a05c3c
4 files changed
+145 -16

No files matched your search

+6
View File
@@ -1394,6 +1394,12 @@ async function handleQuickOpenSelect(item: any) {
}
}
return;
} else if (item.type === "schema") {
const dbNode = findTreeNodeById(connectionStore.treeNodes, `${item.connectionId}:${item.database}`);
if (dbNode && !dbNode.isExpanded) await connectionStore.loadSchemas(item.connectionId, item.database);
const schemaNode = findTreeNodeById(connectionStore.treeNodes, `${item.connectionId}:${item.database}:${item.schema}`);
if (schemaNode && !schemaNode.isExpanded) await connectionStore.loadTables(item.connectionId, item.database, item.schema);
return;
} else if (item.type === "table" || item.type === "view" || item.type === "materialized_view") {
// Open the table/view in a data tab
await openTableTarget({