Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,20 @@
"when": "view == azureResourceGroups",
"group": "navigation@2"
},
{
"command": "azureResourceGroups.selectSubscriptions",
"when": "view == azureResourceGroups && azureResourceGroups.isSignedIn",
"group": "navigation@3"
},
{
"command": "azureFocusView.refreshTree",
"when": "view == azureFocusView",
"group": "navigation@3"
"group": "navigation@4"
},
{
"command": "azureResourceGroups.refreshTree",
"when": "view == azureResourceGroups",
"group": "navigation@3"
"group": "navigation@4"
},
{
"command": "azureResourceGroups.askAgentAboutActivityLog",
Expand Down
2 changes: 2 additions & 0 deletions src/tree/azure/AzureResourceTreeDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class AzureResourceTreeDataProvider extends AzureResourceTreeDataProvider
try {
await vscode.commands.executeCommand('setContext', 'azureResourceGroups.needsTenantAuth', false);
const subscriptions = await subscriptionProvider.getAvailableSubscriptions({ noCache: shouldClearCache });
await vscode.commands.executeCommand('setContext', 'azureResourceGroups.isSignedIn', true);
this.sendSubscriptionTelemetryIfNeeded(); // Don't send until the above call is done, to avoid cache missing

context.telemetry.measurements.subscriptionCount = subscriptions.length;
Expand Down Expand Up @@ -235,6 +236,7 @@ export class AzureResourceTreeDataProvider extends AzureResourceTreeDataProvider
} catch (error) {
if (isNotSignedInError(error)) {
context.telemetry.properties.outcome = 'notSignedIn';
await vscode.commands.executeCommand('setContext', 'azureResourceGroups.isSignedIn', false);
return getSignInTreeItems(true);
}

Expand Down