Skip to content

Commit

Permalink
perf: update the code according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wenytang-ms committed Feb 14, 2025
1 parent 6f4a1d2 commit 5359230
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -791,22 +791,22 @@
},
"azureApiManagement.selectedSubscriptions": {
"type": "array",
"description": "Selected Azure subscriptions",
"description": "%azureApiManagement.selectAzureSubscriptions%",
"items": {
"type": "string"
}
},
"azureApiManagement.selectedTenant": {
"type": "object",
"description": "A specific tenant to sign in to",
"description": "%azureApiManagement.selectAzureTenant%",
"properties": {
"name": {
"type": "string",
"description": "tenant name"
"description": "%azureApiManagement.selectAzureTenant.tenantName%"
},
"id": {
"type": "string",
"description": "tenant id"
"description": "%azureApiManagement.selectAzureTenant.tenantId%"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
"azureApiManagement.openExtensionWorkspaceFolder": "Open extension workspace folder",
"azureApiManagement.initializeExtensionWorkspaceFolder": "Initialize extension workspace folder",
"azureApiManagement.advancedPolicyAuthoringExperience": "(Experimental Feature) Enables advanced policy authoring experience.",
"azureApiManagement.selectAzureSubscriptions": "Selected Azure subscriptions",
"azureApiManagement.selectAzureTenant": "Selected Azure Tenant",
"azureApiManagement.selectAzureTenant.tenantName": "tenant name",
"azureApiManagement.selectAzureTenant.tennatId": "tenant id",
"azureApiManagement.extractService": "Extract Service",
"azureApiManagement.extractApi": "Extract API",
"azureApiManagement.importFunctionApp": "Import from Azure Functions",
Expand Down
2 changes: 2 additions & 0 deletions src/commands/openUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ export async function openUrlFromTreeNode(context: IActionContext, node?: AzExtT
await openUrl(AzureAccountUrl.createAzureStudentUrl);
break;
}
default:
break;
}
}
2 changes: 1 addition & 1 deletion src/debugger/apimDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export class ApimDebugSession extends LoggingDebugSession {
private async getAccountCredentials(): Promise<TokenCredential> {
const session = await AzureAuth.getReadySessionProvider();
if (GeneralUtils.failed(session)) {
throw new Error("ERROR!");
throw new Error("Failed to access the Azure Account Session.");
}
return await AzureAuth.getCredential(session.result);
}
Expand Down

0 comments on commit 5359230

Please sign in to comment.