message: Change "reduce" to "for" statement
diff: @@ -117,7 +117,8 @@ export abstract class AzureAuth {
  private static async loadSubscriptionItems(): Promise<SubscriptionItem[]> {
  await this.api.waitForFilters();
  - const subscriptionItems: SubscriptionItem[] = [];
  + let subscriptionItems: SubscriptionItem[] = [];
  + let subscriptionIds: Map<string, boolean> = new Map();
  for (const session of this.api.sessions) {
  const credentials = session.credentials;
  const subscriptionClient = new SC.SubscriptionClient(credentials);
  @@ -125,20 +126,17 @@ export abstract class AzureAuth {
  subscriptionClient.subscriptions,
  subscriptionClient.subscriptions.list()
  );
  -
  - let filteredSubscriptions = subscriptions.reduce((items, subscription) => {
  - if (subscription.subscriptionId && !(subscriptionItems.some(item => item.subscriptionId === subscription.subscriptionId))) {
  - items.push({
  + for (const subscription of subscriptions) {
  + if (subscription.subscriptionId && !subscriptionIds.has(subscription.subscriptionId)) {
  + subscriptionIds.set( subscription.subscriptionId, true );
  + subscriptionItems.push({
  label: subscription.displayName || "",
  subscriptionId: subscription.subscriptionId || "",
  session,
  subscription
  });
  }
  - return items;
  - }, <SubscriptionItem[]>[]);
  -
  - subscriptionItems.push(...filteredSubscriptions);
  + }
  }
  subscriptionItems.sort((a, b) => a.label.localeCompare(b.label));
  return subscriptionItems;
  