Skip to content

Commit 43c96c1

Browse files
Update @microsoft/vscode-azext-azureauth to 6.0.0-alpha.3 (#1380)
Update TenantTreeItem to use AzureAccount type and fix MockAzureSubscriptionProvider to include environment property required by the new version. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8500395 commit 43c96c1

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

package-lock.json

Lines changed: 6 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@
926926
"dependencies": {
927927
"@azure/arm-resources": "^5.2.0",
928928
"@azure/arm-resources-profile-2020-09-01-hybrid": "^2.1.0",
929-
"@microsoft/vscode-azext-azureauth": "^6.0.0-alpha.2",
929+
"@microsoft/vscode-azext-azureauth": "^6.0.0-alpha.3",
930930
"@microsoft/vscode-azext-azureutils": "^4.0.0",
931931
"@microsoft/vscode-azext-utils": "^4.0.4",
932932
"form-data": "^4.0.4",

src/tree/tenants/TenantTreeItem.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import { TenantIdDescription } from '@azure/arm-resources-subscriptions';
7+
import { AzureAccount } from '@microsoft/vscode-azext-azureauth';
78
import { nonNullValue } from '@microsoft/vscode-azext-utils';
89
import * as vscode from 'vscode';
910
import { GenericItemOptions } from "../GenericItem";
@@ -16,7 +17,7 @@ export interface TenantItemOptions extends GenericItemOptions {
1617
export class TenantTreeItem implements ResourceGroupsItem {
1718
public label: string;
1819
public tenantId: string;
19-
constructor(public readonly tenant: TenantIdDescription, public readonly account: vscode.AuthenticationSessionAccountInformation, private readonly options?: TenantItemOptions) {
20+
constructor(public readonly tenant: TenantIdDescription, public readonly account: AzureAccount, private readonly options?: TenantItemOptions) {
2021
this.label = nonNullValue(this.tenant.displayName);
2122
this.tenantId = nonNullValue(this.tenant.tenantId);
2223
}

test/api/MockAzureSubscriptionProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import type { AzureAccount, AzureSubscription, AzureSubscriptionProvider, AzureTenant, TenantIdAndAccount } from '@microsoft/vscode-azext-azureauth';
7+
import { getConfiguredAzureEnv } from '@microsoft/vscode-azext-azureauth';
78
import type * as vscode from 'vscode';
89
import type { MockResources } from './mockServiceFactory';
910

@@ -39,6 +40,7 @@ export class MockAzureSubscriptionProvider implements AzureSubscriptionProvider
3940
return [{
4041
id: 'accountId',
4142
label: 'Mock Account',
43+
environment: getConfiguredAzureEnv(),
4244
}];
4345
}
4446

0 commit comments

Comments
 (0)