From f08a8d07e434b61d05576e1c67bb0fed33c2a75b Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Wed, 21 Jan 2026 14:37:16 +0100 Subject: [PATCH] IJPL-207762 pass the current item pattern and prefix length to BackendCompletionLookupMirror Space-RevId: cc4b182b6347357825f84f2ca06d31593435de22 GitOrigin-RevId: f7cb8c8cf88bf3937365632813e942fa60c7ebda --- .../completion/common/src/protocol/RpcLookupElementEvent.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/completion/common/src/protocol/RpcLookupElementEvent.kt b/platform/completion/common/src/protocol/RpcLookupElementEvent.kt index 76f58a4c9047..c718d0b1026b 100644 --- a/platform/completion/common/src/protocol/RpcLookupElementEvent.kt +++ b/platform/completion/common/src/protocol/RpcLookupElementEvent.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// 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.openapi.editor.impl.EditorId @@ -14,6 +14,8 @@ sealed interface RpcLookupElementEvent { data class SelectedItem( val requestId: RpcCompletionRequestId, val itemId: RpcCompletionItemId, + val itemPattern: String, + val prefixLength: Int, ) : RpcLookupElementEvent { override fun toString(): String = buildToString("SelectedItem") { field("requestId", requestId)