diff --git a/package-lock.json b/package-lock.json index a543e601..868966d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@azure/arm-resources": "^5.2.0", "@azure/arm-resources-profile-2020-09-01-hybrid": "^2.1.0", "@azure/ms-rest-js": "^2.7.0", - "@microsoft/vscode-azext-azureauth": "^3.1.0", + "@microsoft/vscode-azext-azureauth": "^4.0.0", "@microsoft/vscode-azext-azureutils": "^3.1.1", "@microsoft/vscode-azext-utils": "^2.5.12", "buffer": "^6.0.3", @@ -1034,9 +1034,9 @@ } }, "node_modules/@microsoft/vscode-azext-azureauth": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@microsoft/vscode-azext-azureauth/-/vscode-azext-azureauth-3.1.0.tgz", - "integrity": "sha512-jsRbrFZV6P/EM5Gpjp1SEnaiA4XyfNdkHxIyh7K/WwwN/d1DO+Q72ws/WyohK1tqfqYaxXNSegciVOGL/uNflw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@microsoft/vscode-azext-azureauth/-/vscode-azext-azureauth-4.0.0.tgz", + "integrity": "sha512-I8BZwtKheDAyMfl0YV9AFhmypQLFbYsBFYP+ZzJte3i0yfRdaPVCxvr8GcAU2fuHXFpdZbT0b6tBvVPAUsv1zA==", "dependencies": { "@azure/arm-resources-subscriptions": "^2.1.0", "@azure/core-client": "^1.9.2", @@ -10990,9 +10990,9 @@ } }, "@microsoft/vscode-azext-azureauth": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@microsoft/vscode-azext-azureauth/-/vscode-azext-azureauth-3.1.0.tgz", - "integrity": "sha512-jsRbrFZV6P/EM5Gpjp1SEnaiA4XyfNdkHxIyh7K/WwwN/d1DO+Q72ws/WyohK1tqfqYaxXNSegciVOGL/uNflw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@microsoft/vscode-azext-azureauth/-/vscode-azext-azureauth-4.0.0.tgz", + "integrity": "sha512-I8BZwtKheDAyMfl0YV9AFhmypQLFbYsBFYP+ZzJte3i0yfRdaPVCxvr8GcAU2fuHXFpdZbT0b6tBvVPAUsv1zA==", "requires": { "@azure/arm-resources-subscriptions": "^2.1.0", "@azure/core-client": "^1.9.2", diff --git a/package.json b/package.json index 96e4bfcf..f4f47188 100644 --- a/package.json +++ b/package.json @@ -788,7 +788,7 @@ "@azure/arm-resources": "^5.2.0", "@azure/arm-resources-profile-2020-09-01-hybrid": "^2.1.0", "@azure/ms-rest-js": "^2.7.0", - "@microsoft/vscode-azext-azureauth": "^3.1.0", + "@microsoft/vscode-azext-azureauth": "^4.0.0", "@microsoft/vscode-azext-azureutils": "^3.1.1", "@microsoft/vscode-azext-utils": "^2.5.12", "buffer": "^6.0.3", diff --git a/src/services/VSCodeAzureSubscriptionProvider.ts b/src/services/VSCodeAzureSubscriptionProvider.ts index 2becf2fc..ee16cc61 100644 --- a/src/services/VSCodeAzureSubscriptionProvider.ts +++ b/src/services/VSCodeAzureSubscriptionProvider.ts @@ -5,6 +5,7 @@ import { VSCodeAzureSubscriptionProvider } from '@microsoft/vscode-azext-azureauth'; import { getSelectedTenantAndSubscriptionIds } from '../commands/accounts/selectSubscriptions'; +import { ext } from '../extensionVariables'; let vscodeAzureSubscriptionProvider: VSCodeAzureSubscriptionProvider | undefined; @@ -19,5 +20,5 @@ async function createVSCodeAzureSubscriptionProvider(): Promise { + public async getTenants(): Promise { return [{ tenantId: 'tenantId', + account: { + id: 'accountId', + label: 'accountLabel', + } }]; }