Skip to content

Commit a2cbe75

Browse files
committed
Force refresh service plan in combo box loadItems to avoid http request in event listener
1 parent 48853aa commit a2cbe75

File tree

1 file changed

+1
-3
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/appservice/serviceplan

1 file changed

+1
-3
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/appservice/serviceplan/ServicePlanComboBox.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ public void setSubscription(Subscription subscription) {
5555
this.clear();
5656
return;
5757
}
58-
// force refresh service plan when switch subscription
59-
Azure.az(AzureAppService.class).subscription(subscription.getId()).appServicePlans(true);
6058
this.refreshItems();
6159
}
6260

@@ -114,7 +112,7 @@ protected List<? extends AppServicePlanEntity> loadItems() throws Exception {
114112
.collect(Collectors.toList()));
115113
}
116114
final List<AppServicePlanEntity> remotePlans = Azure.az(AzureAppService.class)
117-
.subscription(subscription.getId()).appServicePlans().stream().map(IAppServicePlan::entity)
115+
.subscription(subscription.getId()).appServicePlans(true).stream().map(IAppServicePlan::entity)
118116
.collect(Collectors.toList());
119117
plans.addAll(remotePlans);
120118
Stream<AppServicePlanEntity> stream = plans.stream();

0 commit comments

Comments
 (0)