Skip to content

Commit 4ee2977

Browse files
Petr Surkovintellij-monorepo-bot
Petr Surkov
authored andcommitted
Revert "[ai-completion] LLM-16065: store MLCompletionSession per editor inside InlineCompletionRequest"
This reverts commit a4409cdf8c815b2531af73fb0d9a27f20e3ad0af. GitOrigin-RevId: 77f3da135457ed721b835240a90aa7329bc247ef
1 parent e2271ae commit 4ee2977

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/platform-impl/codeinsight-inline/src/com/intellij/codeInsight/inline/completion/session/InlineCompletionContext.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class InlineCompletionContext internal constructor(
2020
/**
2121
* @see dispose
2222
*/
23-
@Volatile
24-
var isDisposed: Boolean = false
23+
var isDisposed = false
2524
@RequiresEdt
2625
get
2726
private set

platform/platform-impl/codeinsight-inline/src/com/intellij/codeInsight/inline/completion/session/InlineCompletionSession.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ class InlineCompletionSession private constructor(
171171
private val LOG = thisLogger()
172172
private val INLINE_COMPLETION_SESSION = Key.create<InlineCompletionSession>("inline.completion.session")
173173

174+
@RequiresEdt
174175
fun getOrNull(editor: Editor): InlineCompletionSession? = editor.getUserData(INLINE_COMPLETION_SESSION)
175176

176177
@RequiresEdt

0 commit comments

Comments
 (0)