Codium-ai / codiumai-jetbrains-release

60 stars 8 forks source link

Migrate to a new Inline Completion API #210

Open BarracudaPff opened 8 months ago

BarracudaPff commented 8 months ago

Hi! For a long time, IntelliJ Platform lacked a built-in API to display inline completion (aka gray text completion). As a result, many plugins, including Codeium, implemented it from scratch. In the latest 2023.3 release, the IntelliJ platform added an API for inline completion.

This new API allows developers to design plugins that enable inline completion, simplifying the process considerably. The primary benefit of this new API is that it enables multiple plugins to operate simultaneously, effectively enhancing overall system integration and compatibility.

The new built-in API is not compatible with implementations of other plugins, potentially causing two independent gray texts within the editor. We kindly invite you to explore the possibility of integrating our new API into your plugin at your earliest convenience. Your collaboration is crucial in achieving better synchronization between plugins for inline completion with the IntelliJ platform, thereby boosting the overall user experience.

Should you encounter any limitations or require additional features, please do not hesitate to let us know. We’re committed to ensuring this new API meets your requirements and improves the overall IntelliJ environment.

Here is our issue tracker.

Please migrate to the new API, you can find the entry points below:

It should cover all your features with current implementation and even more.

Thank you in advance!

ArtsiomCh commented 8 months ago

Hi Kirill! Many Thanks for the docs and links, we just exploring the ways how to implement such completion in our plugin. It's great that now we have API for that in Idea!