[inline-completion] IJPL-165092: rollback added @ApiStatus.Internal

(cherry picked from commit f08b255c5c05793df2ac4f942a0dd09b2dd08941)

IJ-MR-147666

GitOrigin-RevId: 12440db0ae92917719232b67aa1ec7e4a1d37c12
This commit is contained in:
Kirill.Karnaukhov
2024-10-24 14:51:32 +02:00
committed by intellij-monorepo-bot
parent 089f134c57
commit fb0757f5d4
2 changed files with 15 additions and 11 deletions

View File

@@ -775,6 +775,8 @@ com.intellij.codeInsight.inline.completion.InlineCompletionEvent
- a:toRequest():com.intellij.codeInsight.inline.completion.InlineCompletionRequest
f:com.intellij.codeInsight.inline.completion.InlineCompletionEvent$DirectCall
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent
- <init>(com.intellij.openapi.editor.Editor,com.intellij.openapi.editor.Caret,com.intellij.openapi.actionSystem.DataContext):V
- b:<init>(com.intellij.openapi.editor.Editor,com.intellij.openapi.editor.Caret,com.intellij.openapi.actionSystem.DataContext,I,kotlin.jvm.internal.DefaultConstructorMarker):V
- f:getCaret():com.intellij.openapi.editor.Caret
- f:getContext():com.intellij.openapi.actionSystem.DataContext
- f:getEditor():com.intellij.openapi.editor.Editor
@@ -791,10 +793,12 @@ com.intellij.codeInsight.inline.completion.InlineCompletionEvent$InlineLookupEve
f:com.intellij.codeInsight.inline.completion.InlineCompletionEvent$LookupCancelled
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent$InlineLookupEvent
- <init>(com.intellij.codeInsight.lookup.LookupEvent):V
- getEvent():com.intellij.codeInsight.lookup.LookupEvent
f:com.intellij.codeInsight.inline.completion.InlineCompletionEvent$LookupChange
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent$InlineLookupEvent
- <init>(com.intellij.codeInsight.lookup.LookupEvent):V
- getEvent():com.intellij.codeInsight.lookup.LookupEvent
- toRequest():com.intellij.codeInsight.inline.completion.InlineCompletionRequest
com.intellij.codeInsight.inline.completion.InlineCompletionEventAdapter

View File

@@ -19,7 +19,6 @@ import com.intellij.psi.PsiFile
import com.intellij.psi.impl.source.PsiFileImpl
import com.intellij.psi.util.PsiUtilBase
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.annotations.ApiStatus.ScheduledForRemoval
import kotlin.random.Random
class InlineCompletionRequest(
@@ -97,7 +96,10 @@ interface InlineCompletionEvent {
*
* Use [ManualCall] instead as it guarantees that exactly your provider is going to be called.
*/
class DirectCall @ApiStatus.Internal constructor(
class DirectCall
@Deprecated("This constructor is going to be internal. It should not be created outside of the platform.")
@ApiStatus.ScheduledForRemoval
constructor(
val editor: Editor,
val caret: Caret,
val context: DataContext? = null,
@@ -124,10 +126,10 @@ interface InlineCompletionEvent {
* @param additionalData The data context for the call (not stable).
*/
@ApiStatus.Experimental
class ManualCall(
class ManualCall @ApiStatus.Experimental constructor(
val editor: Editor,
@ApiStatus.Internal
@get:ApiStatus.Internal
override val providerId: InlineCompletionProviderID,
@ApiStatus.Experimental
@@ -190,14 +192,13 @@ interface InlineCompletionEvent {
* @param event The lookup event.
*/
class LookupChange @ApiStatus.Internal constructor(
@ApiStatus.Experimental
@get:ApiStatus.Experimental
override val editor: Editor,
override val event: LookupEvent,
) : InlineLookupEvent, Builtin {
@Deprecated("This event should not be created outside the platform.")
@ScheduledForRemoval
@ApiStatus.Internal
@Deprecated("It should not be created outside of the platform.")
@ApiStatus.ScheduledForRemoval
constructor(event: LookupEvent) : this(
runReadAction { event.lookup!!.editor },
event
@@ -223,9 +224,8 @@ interface InlineCompletionEvent {
override val event: LookupEvent
) : InlineLookupEvent, Builtin {
@Deprecated("This event should not be created outside the platform.")
@ScheduledForRemoval
@ApiStatus.Internal
@Deprecated("It should not be created outside of the platform.")
@ApiStatus.ScheduledForRemoval
constructor(event: LookupEvent) : this(
runReadAction { event.lookup!!.editor },
event