Skip to content

Commit 59fb121

Browse files
Flanker-MSFTFlanker-MSFT
authored andcommitted
Refresh project view after azure facet added
1 parent 8064dbe commit 59fb121

File tree

1 file changed

+2
-0
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-resource-connector-lib/src/main/java/com/microsoft/azure/toolkit/intellij/facet

1 file changed

+2
-0
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-resource-connector-lib/src/main/java/com/microsoft/azure/toolkit/intellij/facet/AzureFacet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.intellij.facet.Facet;
1010
import com.intellij.facet.FacetManager;
1111
import com.intellij.facet.FacetType;
12+
import com.intellij.ide.projectView.ProjectView;
1213
import com.intellij.ide.util.PropertiesComponent;
1314
import com.intellij.openapi.module.Module;
1415
import com.intellij.openapi.module.ModuleUtil;
@@ -44,6 +45,7 @@ public static void addTo(@Nonnull final Module module) {
4445
FacetManager.getInstance(module).addFacet(AzureFacetType.INSTANCE, "Azure", null);
4546
properties.setValue(key, true);
4647
}
48+
ProjectView.getInstance(module.getProject()).getCurrentProjectViewPane().updateFromRoot(true);
4749
}
4850

4951
public static boolean wasEverAddedTo(@Nonnull final Module module) {

0 commit comments

Comments
 (0)