Skip to content

Commit

Permalink
Merge pull request #747 from JetBrains/233-mb-shouldReplace
Browse files Browse the repository at this point in the history
Azure Functions: Default run configuration is no longer Azure Functions run configuration
  • Loading branch information
maartenba authored Dec 19, 2023
2 parents 8bc1ef3 + 502ce93 commit 1a4a2b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</ul>
<h4>Fixed bugs:</h4>
<ul>
<li>Azure Functions: Default run configuration is no longer Azure Functions run configuration (<a href="https://github.com/JetBrains/azure-tools-for-intellij/issues/746">#746</a>)</li>
<li>Azure Functions: Fix casing for the `AzureFunctionsVersion` project property (<a href="https://youtrack.jetbrains.com/issue/RIDER-98036">RIDER-98036</a>)</li>
<li>Azure Functions: Fix Azure Functions tool paths configuration (<a href="https://youtrack.jetbrains.com/issue/RIDER-98014">RIDER-98014</a>)</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
</ul>
<h4>Fixed bugs:</h4>
<ul>
<li>Azure Functions: Default run configuration is no longer Azure Functions run configuration (<a href="https://github.com/JetBrains/azure-tools-for-intellij/issues/746">#746</a>)</li>
<li>Azure Functions: Fix casing for the `AzureFunctionsVersion` project property (<a href="https://youtrack.jetbrains.com/issue/RIDER-98036">RIDER-98036</a>)</li>
<li>Azure Functions: Fix Azure Functions tool paths configuration (<a href="https://youtrack.jetbrains.com/issue/RIDER-98014">RIDER-98014</a>)</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020-2022 JetBrains s.r.o.
* Copyright (c) 2020-2023 JetBrains s.r.o.
*
* All rights reserved.
*
Expand All @@ -23,6 +23,7 @@
package org.jetbrains.plugins.azure.functions.run

import com.intellij.execution.actions.ConfigurationContext
import com.intellij.execution.actions.ConfigurationFromContext
import com.intellij.execution.actions.LazyRunConfigurationProducer
import com.intellij.execution.configurations.ConfigurationTypeUtil
import com.intellij.openapi.util.Ref
Expand Down Expand Up @@ -82,4 +83,8 @@ class AzureFunctionsHostRunConfigurationProducer

return true
}

override fun shouldReplace(self: ConfigurationFromContext, other: ConfigurationFromContext): Boolean {
return !other.isProducedBy(AzureFunctionsHostRunConfigurationProducer::class.java)
}
}

0 comments on commit 1a4a2b9

Please sign in to comment.