Show Inline Texts (With Options To Accept/Ignore The Texts) In Editor
已回答
Dear Team,
My use case is simple. I've completion texts in hand. All I need is to show such texts inline in the editor with Accept/Ignore options such that when Accept is pressed, the texts get added to the editor and ignored when Ignore is pressed.
I've come across a Kotlin InlineCompletionProvider interface which is available for inline suggestions. While trying to implement this in Java, I'm facing an issue which is already registered in https://youtrack.jetbrains.com/issue/IJPL-163181/inline.completion.provider-EP-is-impossible-to-implement-in-100-pure-Java
Do you still recommend InlineSuggestionProvider for this case or any other API?
请先登录再写评论。
You must use Kotlin when using suspending API, see comments in linked issue https://youtrack.jetbrains.com/issue/IJPL-156532/Issue-Implementing-Abstract-Method-in-InlineCompletionProvider-Interface.