IJPL-207762 mirror lookup focus state

GitOrigin-RevId: ebcf5e9da04d7e793609a8992bd93f8780c5f87e
This commit is contained in:
Max Medvedev
2026-02-10 09:50:20 +01:00
committed by intellij-monorepo-bot
parent 816377f094
commit e80d425ea0

View File

@@ -1,6 +1,7 @@
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.completion.common.protocol
import com.intellij.codeInsight.lookup.LookupFocusDegree
import com.intellij.platform.project.ProjectId
import kotlinx.serialization.Serializable
@@ -16,10 +17,12 @@ sealed interface RpcLookupElementEvent {
data class CurrentItemChanged(
val requestId: RpcCompletionRequestId,
val itemId: RpcCompletionItemId?,
val focusDegree: LookupFocusDegree,
) : RpcLookupElementEvent {
override fun toString(): String = buildToString("SelectedItem") {
field("requestId", requestId)
field("itemId", itemId)
field("focusDegree", focusDegree)
}
}
@@ -30,10 +33,12 @@ sealed interface RpcLookupElementEvent {
data class ArrangementChanged(
val requestId: RpcCompletionRequestId,
val arrangementId: RpcCompletionArrangementId,
val focusDegree: LookupFocusDegree,
) : RpcLookupElementEvent {
override fun toString(): String = buildToString("ArrangementChanged") {
field("requestId", requestId)
field("arrangementId", arrangementId)
field("focusDegree", focusDegree)
}
}