File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/kotlin/com/intellij/temporary/inlay/codecomplete Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import com.intellij.openapi.editor.EditorCustomElementRenderer
14
14
import com.intellij.openapi.editor.Inlay
15
15
import com.intellij.openapi.editor.ex.EditorEx
16
16
import com.intellij.openapi.editor.impl.ImaginaryEditor
17
+ import com.intellij.openapi.editor.impl.InlayModelImpl
17
18
import com.intellij.openapi.fileEditor.FileDocumentSynchronizationVetoer
18
19
import com.intellij.openapi.project.Project
19
20
import com.intellij.openapi.util.Disposer
@@ -77,7 +78,7 @@ class LLMInlayManagerImpl : LLMInlayManager {
77
78
78
79
@RequiresEdt
79
80
override fun collectInlays (editor : Editor , startOffset : Int , endOffset : Int ): List <LLMInlayRenderer > {
80
- val model = editor.inlayModel
81
+ val model = editor.inlayModel as ? InlayModelImpl ? : return emptyList()
81
82
82
83
if (endOffset <= startOffset) return emptyList()
83
84
You can’t perform that action at this time.
0 commit comments