From f6bdae5760f5b4e6531d33b71ba2ee0a4228ad59 Mon Sep 17 00:00:00 2001 From: Konstantin Lepeshenkov <5447190+scale-tone@users.noreply.github.com> Date: Sat, 2 Nov 2024 18:17:56 +0100 Subject: [PATCH] #217, implementation for vscode ext --- durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts b/durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts index 47ede07..0729359 100644 --- a/durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts +++ b/durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts @@ -115,7 +115,7 @@ export class MonitorViewList { return this._monitorViews[keys[0]]; } - // Parses local project files and tries to infer connction settings from them + // Parses local project files and tries to infer connection settings from them getStorageConnectionSettingsFromCurrentProject(defaultTaskHubName?: string, projectPath?: string): StorageConnectionSettings | null { const hostJson = this.readHostJson(projectPath); @@ -158,7 +158,7 @@ export class MonitorViewList { return new StorageConnectionSettings(ConnStringUtils.ExpandEmulatorShortcutIfNeeded(storageConnString), hubName, hubsConnString); } - const storageConnString = this.getValueFromLocalSettings('AzureWebJobsStorage', projectPath); + const storageConnString = this.getValueFromLocalSettings(hostJson.connectionStringName || 'AzureWebJobsStorage', projectPath); if (!storageConnString) { return null; } @@ -512,6 +512,8 @@ export class MonitorViewList { result.connectionStringName = durableTask.storageProvider.StorageConnectionName || 'AzureWebJobsStorage'; result.otherConnectionStringName = durableTask.storageProvider.EventHubsConnectionName || 'EventHubsConnection'; break; + default: + result.connectionStringName = durableTask.storageProvider.connectionStringName; } } }