Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
motm32 committed Dec 6, 2024
1 parent e503627 commit ae8212e
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -400,7 +400,7 @@
"group": "navigation@1"
},
{
"command": "azureResourceGroups.logInButton",
"command": "azureTenantsView.logInButton",
"when": "view == azureTenantsView",
"group": "navigation@1"
}
6 changes: 3 additions & 3 deletions src/tree/tenants/registerTenantTree.ts
Original file line number Diff line number Diff line change
@@ -50,16 +50,16 @@ export function registerTenantTree(context: vscode.ExtensionContext, options: Re
return tenantResourceTreeDataProvider;
}

async function updateTenantsSetting(_context: IActionContext, tenants: vscode.TreeCheckboxChangeEvent<TenantTreeItem>) {
async function updateTenantsSetting(context: IActionContext, tenants: vscode.TreeCheckboxChangeEvent<TenantTreeItem>) {
const unselectedTenants = getUnselectedTenants();
const unselectedTenantsSet = new Set(unselectedTenants);

for (const [tenantTreeItem, state] of tenants.items) {
if (state === vscode.TreeItemCheckboxState.Unchecked) {
_context.telemetry.properties.uncheckedTenant = 'true';
context.telemetry.properties.uncheckedTenant = 'true';
unselectedTenantsSet.add(getKeyForTenant(tenantTreeItem.tenantId, tenantTreeItem.account.id));
} else if (state === vscode.TreeItemCheckboxState.Checked) {
_context.telemetry.properties.checkedTenant = 'true';
context.telemetry.properties.checkedTenant = 'true';
const treeItem = await tenantTreeItem.getTreeItem();
if (treeItem?.contextValue === 'tenantNameNotSignedIn') {
await vscode.commands.executeCommand('azureTenantsView.signInToTenant', tenantTreeItem);

0 comments on commit ae8212e

Please sign in to comment.