Skip to content

Commit

Permalink
drop ActionPlaces.isMainToolbar usages
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 071f16160dc8b9cea9bd1b85bd15e7fb8ea91061
  • Loading branch information
gregsh authored and seclerp committed Aug 28, 2024
1 parent 21f5726 commit 6149860
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.jetbrains.rider.plugins.efcore.features.shared

import com.intellij.openapi.actionSystem.ActionPlaces
import com.intellij.openapi.actionSystem.ActionPlaces.MAIN_TOOLBAR
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformDataKeys
import com.intellij.platform.backend.workspace.WorkspaceModel
Expand Down Expand Up @@ -34,7 +35,7 @@ fun AnActionEvent.isSolutionModeContext(): Boolean {
val extension = getData(PlatformDataKeys.VIRTUAL_FILE)?.extension
return when {
ActionPlaces.isMainMenuOrActionSearch(place) -> true
ActionPlaces.isMainToolbar(place) -> true
place == MAIN_TOOLBAR -> true
isFromContextMenu && extension == "sln" || extension == "slnf" -> true
else -> false
}
Expand Down

0 comments on commit 6149860

Please sign in to comment.