diff --git a/src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/shared/AnActionEventEx.kt b/src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/shared/AnActionEventEx.kt index 0ec1bc5..89ddfde 100644 --- a/src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/shared/AnActionEventEx.kt +++ b/src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/shared/AnActionEventEx.kt @@ -35,7 +35,7 @@ fun AnActionEvent.isSolutionModeContext(): Boolean { return when { ActionPlaces.isMainMenuOrActionSearch(place) -> true ActionPlaces.isMainToolbar(place) -> true - ActionPlaces.isPopupPlace(place) && extension == "sln" || extension == "slnf" -> true + isFromContextMenu && extension == "sln" || extension == "slnf" -> true else -> false } }