diff --git a/src/tree/tenants/TenantResourceTreeDataProvider.ts b/src/tree/tenants/TenantResourceTreeDataProvider.ts index 5463aba7..289cfdc0 100644 --- a/src/tree/tenants/TenantResourceTreeDataProvider.ts +++ b/src/tree/tenants/TenantResourceTreeDataProvider.ts @@ -69,7 +69,6 @@ export class TenantResourceTreeDataProvider extends ResourceTreeDataProviderBase iconPath: new vscode.ThemeIcon('account'), contextValue: 'accountName', collapsibleState: vscode.TreeItemCollapsibleState.Expanded, - checkboxState: vscode.TreeItemCheckboxState.Checked, })); } } diff --git a/src/tree/tenants/registerTenantTree.ts b/src/tree/tenants/registerTenantTree.ts index 74a702f1..c8a5e5b4 100644 --- a/src/tree/tenants/registerTenantTree.ts +++ b/src/tree/tenants/registerTenantTree.ts @@ -60,7 +60,7 @@ async function updateTenantsSetting(_context: IActionContext, tenants: vscode.Tr } else if (state === vscode.TreeItemCheckboxState.Checked) { const treeItem = await tenantTreeItem.getTreeItem(); if (treeItem?.contextValue === 'tenantNameNotSignedIn') { - await vscode.commands.executeCommand('azureTenant.signInToTenant', tenantTreeItem,); + await vscode.commands.executeCommand('azureTenant.signInToTenant', tenantTreeItem, tenantTreeItem.account); ext.actions.refreshTenantTree(); } unselectedTenants.delete(getKeyForTenant(tenantTreeItem));