Skip to content

Commit e73d238

Browse files
show Deploy to Azure... action node under Azure for newly created project(which has no default profile)
1 parent 3a72982 commit e73d238

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/connector/projectexplorer

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/connector/projectexplorer/AzureFacetRootNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import java.util.Objects;
4141
import java.util.Optional;
4242

43+
import static com.microsoft.azure.toolkit.intellij.common.action.IntellijActionsContributor.ACTIONS_DEPLOY_TO_AZURE;
4344
import static com.microsoft.azure.toolkit.intellij.connector.ConnectionTopics.CONNECTION_CHANGED;
4445
import static com.microsoft.azure.toolkit.intellij.connector.ResourceConnectionActionsContributor.CONNECT_TO_MODULE;
4546

@@ -85,6 +86,7 @@ public Collection<? extends AbstractAzureFacetNode<?>> buildChildren() {
8586
final Profile profile = module.getDefaultProfile();
8687
if (Objects.isNull(profile)) {
8788
nodes.add(new ActionNode<>(this.getProject(), CONNECT_TO_MODULE, module));
89+
nodes.add(new ActionNode<>(this.getProject(), Action.Id.of(ACTIONS_DEPLOY_TO_AZURE), module.getModule()));
8890
return nodes;
8991
}
9092
nodes.add(new DeploymentTargetsNode(this.getProject(), profile.getDeploymentTargetManager()));

0 commit comments

Comments
 (0)