File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/intellij/helpers
Utils/azure-explorer-common/src/com/microsoft/tooling/msservices/serviceexplorer/azure/springcloud Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ public void openSpringCloudAppPropertyView(SpringCloudAppNode node) {
433433 itemVirtualFile .setFileType (new AzureFileType (SPRING_CLOUD_APP_PROPERTY_TYPE , AzureIconLoader .loadIcon (AzureIconSymbol .SpringCloud .MODULE )));
434434 }
435435 AzureTaskManager .getInstance ().runInModal (String .format ("Loading properties of app(%s)" , appName ), () -> {
436- final SpringCloudCluster cluster = Azure . az ( AzureSpringCloud . class ). subscription ( subscription ). cluster ( node .getApp ().getCluster (). name () );
436+ final SpringCloudCluster cluster = node .getApp ().getCluster ();
437437 final SpringCloudApp app = Objects .requireNonNull (cluster ).app (appName );
438438 itemVirtualFile .putUserData (SpringCloudAppPropertiesEditorProvider .APP_KEY , app );
439439 AzureTaskManager .getInstance ().runLater (() -> fileEditorManager .openFile (itemVirtualFile , true , true ));
Original file line number Diff line number Diff line change @@ -156,24 +156,24 @@ private void delete() {
156156 private void start () {
157157 status = SERVER_UPDATING ;
158158 deploy .start ();
159- this .refreshNode ();
160159 SpringCloudMonitorUtil .awaitAndMonitoringStatus (app , status );
160+ this .refreshNode ();
161161 }
162162
163163 @ AzureOperation (name = ActionConstants .SpringCloud .STOP , type = AzureOperation .Type .ACTION )
164164 private void stop () {
165165 status = SERVER_UPDATING ;
166166 deploy .stop ();
167- this .refreshNode ();
168167 SpringCloudMonitorUtil .awaitAndMonitoringStatus (app , status );
168+ this .refreshNode ();
169169 }
170170
171171 @ AzureOperation (name = ActionConstants .SpringCloud .RESTART , type = AzureOperation .Type .ACTION )
172172 private void restart () {
173173 status = SERVER_UPDATING ;
174174 deploy .restart ();
175- this .refreshNode ();
176175 SpringCloudMonitorUtil .awaitAndMonitoringStatus (app , status );
176+ this .refreshNode ();
177177 }
178178
179179 @ AzureOperation (name = ActionConstants .SpringCloud .OPEN_IN_PORTAL , type = AzureOperation .Type .ACTION )
You can’t perform that action at this time.
0 commit comments