Skip to content

Commit

Permalink
Remove SWAP_DEPLOYMENT_SLOT handler from AppServiceRiderActionsContri…
Browse files Browse the repository at this point in the history
…butor
  • Loading branch information
rafaelldi committed Sep 18, 2024
1 parent 3d0ada9 commit e605997
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ package com.microsoft.azure.toolkit.intellij.appservice
import com.intellij.openapi.actionSystem.AnActionEvent
import com.microsoft.azure.toolkit.ide.appservice.AppServiceActionsContributor
import com.microsoft.azure.toolkit.ide.appservice.file.AppServiceFileActionsContributor
import com.microsoft.azure.toolkit.ide.appservice.function.FunctionAppActionsContributor
import com.microsoft.azure.toolkit.ide.appservice.webapp.WebAppActionsContributor
import com.microsoft.azure.toolkit.ide.common.IActionsContributor
import com.microsoft.azure.toolkit.ide.common.action.ResourceCommonActionsContributor
import com.microsoft.azure.toolkit.ide.containerregistry.ContainerRegistryActionsContributor
Expand Down Expand Up @@ -107,17 +105,5 @@ class AppServiceRiderActionsContributor : IActionsContributor {
{ c, e: AnActionEvent ->
e.project?.let { OpenAppServicePropertyViewAction.openFunctionAppDeploymentSlotPropertyView(c as FunctionAppDeploymentSlot, it) }
})
am.registerHandler(
WebAppActionsContributor.SWAP_DEPLOYMENT_SLOT,
{ r, _ -> r is WebAppDeploymentSlot },
{ c, e: AnActionEvent ->
c.remote?.swap("production")
})
am.registerHandler(
FunctionAppActionsContributor.SWAP_DEPLOYMENT_SLOT,
{ r, _ -> r is FunctionAppDeploymentSlot },
{ c, e: AnActionEvent ->
c.remote?.swap("production")
})
}
}

0 comments on commit e605997

Please sign in to comment.