[platform UI][se] IJPL-220342 Fix compilation error in IDETestContext

GitOrigin-RevId: 898cad56e3fd0cba20bbda33b27c83b8add94b67
This commit is contained in:
Aydar Mukhametzyanov
2025-12-02 23:49:52 +00:00
committed by intellij-monorepo-bot
parent d7946b069b
commit 7b9e45dfbd
@@ -1,6 +1,5 @@
package com.intellij.ide.starter.ide
import com.intellij.ide.actions.searcheverywhere.SearchEverywhereFeature
import com.intellij.ide.starter.buildTool.BuildTool
import com.intellij.ide.starter.ci.CIServer
import com.intellij.ide.starter.di.di
@@ -65,6 +64,14 @@ open class IDETestContext(
) {
companion object {
const val OPENTELEMETRY_FILE: String = "opentelemetry.json"
private val SEARCH_EVERYWHERE_REGISTRY_KEYS: List<String> get() = listOf(
"search.everywhere.new.enabled",
"search.everywhere.new.internal.enabled",
"search.everywhere.new.rider.enabled",
"search.everywhere.new.clion.enabled",
"search.everywhere.new.cwm.client.enabled"
)
}
fun copy(ide: InstalledIde? = null, resolvedProjectHome: Path? = null): IDETestContext {
@@ -317,12 +324,12 @@ open class IDETestContext(
@Suppress("TestOnlyProblems")
fun disableSplitSearchEverywhere(): IDETestContext = applyVMOptionsPatch {
SearchEverywhereFeature.allRegistryKeys.forEach { addSystemProperty(it, false) }
SEARCH_EVERYWHERE_REGISTRY_KEYS.forEach { addSystemProperty(it, false) }
}
@Suppress("TestOnlyProblems")
fun enableSplitSearchEverywhere(): IDETestContext = applyVMOptionsPatch {
SearchEverywhereFeature.allRegistryKeys.forEach { addSystemProperty(it, true) }
SEARCH_EVERYWHERE_REGISTRY_KEYS.forEach { addSystemProperty(it, true) }
}
fun withKotlinPluginK2(): IDETestContext = applyVMOptionsPatch {