diff --git a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereFeature.kt b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereFeature.kt index 88a43c2492b0..34a29d1edc0b 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereFeature.kt +++ b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereFeature.kt @@ -23,9 +23,17 @@ object SearchEverywhereFeature { else if (isGuest) "search.everywhere.new.cwm.client.enabled" else "search.everywhere.new.enabled" + // Enable the first Search Everywhere implementation (`com.intellij.ide.actions.searcheverywhere`). @get:TestOnly - val additionalRegistryToTurnOffSplitInTests: Map + val additionalRegistryToTurnOffSplitSEInTests: Map get() = mapOf("search.everywhere.new.enabled" to "false", "search.everywhere.new.rider.enabled" to "false", "search.everywhere.new.cwm.client.enabled" to "false") + + // Enable the new Search Everywhere implementation (`com.intellij.platform.searchEverywhere`). + @get:TestOnly + val additionalRegistryToTurnOnSplitSEInTests: Map + get() = mapOf("search.everywhere.new.enabled" to "true", + "search.everywhere.new.rider.enabled" to "true", + "search.everywhere.new.cwm.client.enabled" to "true") } \ No newline at end of file diff --git a/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt b/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt index c523649d5d3e..da656908436a 100644 --- a/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt +++ b/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt @@ -50,6 +50,7 @@ import com.intellij.util.ui.UIUtil import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import org.jetbrains.annotations.ApiStatus.Internal +import org.jetbrains.annotations.TestOnly import java.awt.BorderLayout import java.awt.Dimension import java.awt.event.* @@ -812,6 +813,11 @@ class SePopupContentPane(private val project: Project?, private val vm: SePopupV } } + @TestOnly + fun getResultListModel(): SeResultListModel { + return resultListModel + } + override fun dispose() {} companion object {