From c184beada576f50576458d5fcb073974cc57e712 Mon Sep 17 00:00:00 2001 From: Rhys Date: Mon, 16 Sep 2024 17:12:35 -0400 Subject: [PATCH] chore: update listDatabases to use nameOnly: true (#818) --- src/explorer/connectionTreeItem.ts | 4 +++- src/participant/participant.ts | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/explorer/connectionTreeItem.ts b/src/explorer/connectionTreeItem.ts index 680d89c2f..9c47423a4 100644 --- a/src/explorer/connectionTreeItem.ts +++ b/src/explorer/connectionTreeItem.ts @@ -115,7 +115,9 @@ export default class ConnectionTreeItem } try { - const dbs = await dataService.listDatabases(); + const dbs = await dataService.listDatabases({ + nameOnly: true, + }); return dbs.map((dbItem) => dbItem.name); } catch (error) { throw new Error( diff --git a/src/participant/participant.ts b/src/participant/participant.ts index de958f678..09534753f 100644 --- a/src/participant/participant.ts +++ b/src/participant/participant.ts @@ -323,7 +323,9 @@ export default class ParticipantController { } try { - const databases = await dataService.listDatabases(); + const databases = await dataService.listDatabases({ + nameOnly: true, + }); return databases.map((db) => ({ label: db.name, data: db.name, @@ -408,7 +410,9 @@ export default class ParticipantController { } try { - const databases = await dataService.listDatabases(); + const databases = await dataService.listDatabases({ + nameOnly: true, + }); return [ ...databases.slice(0, MAX_MARKDOWN_LIST_LENGTH).map((db) => this._createMarkdownLink({