mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-207762 shuffle fields in RpcCompletionItem
GitOrigin-RevId: 0bf755a60c940ed981ed99fa8a2b0426748e6c11
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b67bae7de8
commit
7bae32b0ea
@@ -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.codeInsight.completion.CodeCompletionHandlerBase
|
||||
@@ -11,32 +11,34 @@ import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class RpcCompletionItem(
|
||||
val id: RpcCompletionItemId,
|
||||
val prefixMatcher: RpcPrefixMatcher,
|
||||
val insertHandler: RpcInsertHandler = RpcInsertHandler.Backend,
|
||||
val lookupString: String,
|
||||
val allLookupStrings: Set<String>? = null, // null means setOf(lookupString)
|
||||
val presentation: RpcCompletionItemPresentation,
|
||||
val id: RpcCompletionItemId,
|
||||
val hasExpensiveRenderer: Boolean = false,
|
||||
val insertHandler: RpcInsertHandler = RpcInsertHandler.Backend,
|
||||
val requiresCommittedDocuments: Boolean = true,
|
||||
val autoCompletionPolicy: AutoCompletionPolicy = AutoCompletionPolicy.SETTINGS_DEPENDENT,
|
||||
val isCaseSensitive: Boolean = true,
|
||||
val shouldStopLookupInsertion: Boolean = false,
|
||||
val isDirectInsertion: Boolean = false,
|
||||
val prefixMatcher: RpcPrefixMatcher,
|
||||
val isWorthShowingInAutoPopup: Boolean = false,
|
||||
) {
|
||||
override fun toString(): String = buildToString("RpcCompletionItem") {
|
||||
field("id", id)
|
||||
field("prefixMatcher", prefixMatcher)
|
||||
fieldWithDefault("insertHandler", insertHandler, RpcInsertHandler.Backend)
|
||||
field("lookupString", lookupString)
|
||||
fieldWithNullDefault("allLookupStrings", allLookupStrings)
|
||||
field("presentation", presentation)
|
||||
field("id", id)
|
||||
fieldWithDefault("insertHandler", insertHandler, RpcInsertHandler.Backend)
|
||||
fieldWithDefault("hasExpensiveRenderer", hasExpensiveRenderer, false)
|
||||
fieldWithDefault("requiresCommittedDocuments", requiresCommittedDocuments, true)
|
||||
fieldWithDefault("autoCompletionPolicy", autoCompletionPolicy, AutoCompletionPolicy.SETTINGS_DEPENDENT)
|
||||
fieldWithDefault("isCaseSensitive", isCaseSensitive, true)
|
||||
fieldWithDefault("shouldStopLookupInsertion", shouldStopLookupInsertion, false)
|
||||
fieldWithDefault("isDirectInsertion", isDirectInsertion, false)
|
||||
field("prefixMatcher", prefixMatcher)
|
||||
fieldWithDefault("isWorthShowingInAutoPopup", isWorthShowingInAutoPopup, false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user