Skip to content

Commit ac8f0a9

Browse files
committed
Fix compatability issue with build 241
1 parent 48b1604 commit ac8f0a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/kotlin/io/runescript/plugin/ide/searchEverywhere/RsSearchEverywhereContributor.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.intellij.openapi.actionSystem.AnAction
77
import com.intellij.openapi.actionSystem.AnActionEvent
88
import com.intellij.openapi.actionSystem.CommonDataKeys
99
import com.intellij.openapi.project.Project
10+
import com.intellij.util.containers.ContainerUtil
1011

1112
class RsSearchEverywhereContributor(event: AnActionEvent) : AbstractGotoSEContributor(event),
1213
SearchFieldActionsContributor {
@@ -58,6 +59,16 @@ class RsSearchEverywhereContributor(event: AnActionEvent) : AbstractGotoSEContri
5859
}
5960
}
6061

62+
override fun createRightActions(pattern: String, onChanged: Runnable): List<AnAction> {
63+
return ContainerUtil.emptyList();
64+
}
65+
66+
@Suppress("unused")
67+
fun createRightActions(registerShortcut: (AnAction) -> Unit, onChanged: Runnable): List<AnAction> {
68+
// For compatability with 241
69+
return ContainerUtil.emptyList();
70+
}
71+
6172
companion object {
6273
fun createTriggerFilter(project: Project): PersistentSearchEverywhereContributorFilter<RsTriggerRef> {
6374
val items = RsTriggerRef.forAllTriggers()

0 commit comments

Comments
 (0)