Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
#59
Browse files Browse the repository at this point in the history
  • Loading branch information
scale-tone committed Feb 28, 2021
1 parent e981d48 commit 7dec515
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 93 deletions.
26 changes: 14 additions & 12 deletions durablefunctionsmonitor-vscodeext/resources/storageAccount.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
171 changes: 94 additions & 77 deletions durablefunctionsmonitor-vscodeext/resources/storageAccountAttached.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion durablefunctionsmonitor-vscodeext/src/BackendProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,9 @@ export class StorageConnectionSettings {
get hubName(): string { return this._hubName; };
get connStringHashKey(): string { return this._connStringHashKey; }
get hashKey(): string { return this._hashKey; }
get isFromLocalSettingsJson(): boolean { return this._fromLocalSettingsJson; }

constructor(private _connString: string, private _hubName: string) {
constructor(private _connString: string, private _hubName: string, private _fromLocalSettingsJson: boolean = false) {

this._connStringHashKey = StorageConnectionSettings.GetConnStringHashKey(this._connString);
this._hashKey = this._connStringHashKey + this._hubName.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion durablefunctionsmonitor-vscodeext/src/MonitorViewList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class MonitorViewList {
return null;
}

return new StorageConnectionSettings(ConnStringUtils.ExpandEmulatorShortcutIfNeeded(storageConnString), hubName);
return new StorageConnectionSettings(ConnStringUtils.ExpandEmulatorShortcutIfNeeded(storageConnString), hubName, true);
}

// Stops all backend processes and closes all views
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export class StorageAccountTreeItem extends vscode.TreeItem {
accountName: string,
private _resourcesFolderPath: string,
private _getBackendUrl: () => string,
private _isTaskHubAttached: (hubName: string) => boolean) {
private _isTaskHubAttached: (hubName: string) => boolean,
private _fromLocalSettingsJson: boolean = false) {

super(accountName, vscode.TreeItemCollapsibleState.Expanded);
}
Expand All @@ -37,6 +38,11 @@ export class StorageAccountTreeItem extends vscode.TreeItem {
}

get tooltip(): string {

if (this._fromLocalSettingsJson) {
return `from local.settings.json`;
}

return StorageConnectionSettings.MaskStorageConnString(this._connString);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class StorageAccountTreeItems {
storageAccountName,
this._resourcesFolderPath,
() => this._monitorViewList.getBackendUrl(storageConnString),
(h) => this._monitorViewList.isMonitorViewVisible(new StorageConnectionSettings(storageConnString, h))
(h) => this._monitorViewList.isMonitorViewVisible(new StorageConnectionSettings(storageConnString, h)),
connSettings.isFromLocalSettingsJson
);

this._storageAccountItems.push(node);
Expand Down

0 comments on commit 7dec515

Please sign in to comment.