Fix: Remove duplicate database refresh logic (Fabric). Add logging for collection fetching. (#2426)

* Remove duplicate database refresh logic. Add logging for collection fetching

* fix: Fix unit test

* fix: Update snapshots to include databasesRefreshed property

---------

Co-authored-by: Laurent Nguyen <languye@microsoft.com>
This commit is contained in:
Laurent Nguyen
2026-03-16 14:24:27 +01:00
committed by GitHub
parent c5d1f4f06f
commit 7a93df6a4b
7 changed files with 30 additions and 5 deletions

View File

@@ -165,7 +165,7 @@ async function configureFabric(): Promise<Explorer> {
explorer = createExplorerFabricLegacy(initializationMessage, data.version);
await scheduleRefreshFabricToken(true);
resolve(explorer);
await explorer.refreshAllDatabases();
await explorer.databasesRefreshed;
if (userContext.fabricContext.isVisible) {
firstContainerOpened = true;
openFirstContainer(explorer, userContext.fabricContext.databaseName);
@@ -189,7 +189,7 @@ async function configureFabric(): Promise<Explorer> {
}
resolve(explorer);
await explorer.refreshAllDatabases();
await explorer.databasesRefreshed;
const { databaseName } = userContext.fabricContext;
if (userContext.fabricContext.isVisible && databaseName) {