Skip to content

Commit

Permalink
#217, implementation for vscode ext
Browse files Browse the repository at this point in the history
  • Loading branch information
scale-tone committed Nov 2, 2024
1 parent 56d7e84 commit f6bdae5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit f6bdae5

Please sign in to comment.