eca icon indicating copy to clipboard operation
eca copied to clipboard

Support code completion

Open ericdallo opened this issue 1 year ago • 4 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Similar to copilot inline completions. Image

We should support in the protocol a request for code completion, pretty similar to LSP one but showing in the editor as an inline completion, proposing to user the completion.

ericdallo avatar Jun 20 '25 14:06 ericdallo

  • We may want to have options to configure which model use for those inline completions.

@editor-code-assistant/maintainers would love to hear your thoughts about which options this feature should have

ericdallo avatar Aug 27 '25 13:08 ericdallo

For inspiration, the copilot package already does this well, except it seems to need some extra setup. I can even use regular LSP completions separately from copilot completions and they don't clash much.

I followed this, which works well: https://robert.kra.hn/posts/2023-02-22-copilot-emacs-setup/

jplindstrom avatar Aug 28 '25 16:08 jplindstrom

@jplindstrom good news I started working on that yesterday and following copilot package, yeah hopelfully it will be pretty similar with less setup

ericdallo avatar Aug 28 '25 16:08 ericdallo

Hey everyone, I meged to master the completion branch and added support for Emacs for now! It's still in alpha though, especially the system prompt passed to LLM, from my tests it's still not as good as copilot, probably we can tune it or check for better models, like gpt-4o which seems to behave way better than any other model for completion. I opened a separated issue for this subject.

Any help tunning or understanding how to improve that is welcome!

ericdallo avatar Oct 25 '25 21:10 ericdallo