From e605997e824955f454b7e0c6aaafc06adb665ffc Mon Sep 17 00:00:00 2001 From: Rival Abdrakhmanov Date: Wed, 18 Sep 2024 09:29:12 +0200 Subject: [PATCH] Remove SWAP_DEPLOYMENT_SLOT handler from AppServiceRiderActionsContributor --- .../AppServiceRiderActionsContributor.kt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/AppServiceRiderActionsContributor.kt b/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/AppServiceRiderActionsContributor.kt index b1daa0165b..fc9ba3fde6 100644 --- a/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/AppServiceRiderActionsContributor.kt +++ b/PluginsAndFeatures/azure-toolkit-for-rider/azure-intellij-plugin-appservice-dotnet/src/main/kotlin/com/microsoft/azure/toolkit/intellij/appservice/AppServiceRiderActionsContributor.kt @@ -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 @@ -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") - }) } } \ No newline at end of file