-
-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for inlineCompletionProvider #4581
Comments
|
@Konubinix I did the same here https://github.com/kassick/copilot-lsp ! Let me know if you want to use some of it or contribute -- it was created as a POC at the time, and then I switched to |
@kiennq as I mentioned in the There is at least one glitch I'm aware of -- not sure if it is the same one @Konubinix ran into |
Regarding CAPF for inlineCompletions: One aspect of inline completions is that they can span multiple lines. With copilot, I did not see much of an issue -- I always get one-liners, not sure if it ever responds with longer text. On gitlab-lsp, though, some prompts resulted in multi-line code snippets (e.g. That's why I wrote a separate UI for inline completions instead of using company, even taking care to display the overlay in the correct place. When I had the completions from gitlab-lsp displayed in company, it would often look rather weird -- a very long company tooltip with a single candidate displayed on top of the preview overlay. Helm or Vertico as frontends for capf were no better. IMHO |
I think the |
Is your feature related or already mentioned on the wishlist?
Describe your feature here.
When getting completion, I try to use only the built-in capfs mechanism. The fact that lsp-mode integrates with it is great. Unfortunately, copilot.el does not and I have capfs and the ad-hoc copilot.el stuff so far.
I just realized that under the hood, copilot.el uses an lsp server : copilot-node-server, so I tried creating the lsp-copilot.el client.
But this server provides completion using the inlineCompletionProvider capability, not the completionProvider one.
I tried using https://github.com/kassick/lsp-inline-completions there are a few glitches, but it basically works. But it still does not use the capfs. So I'm back to square one.
So, I'm wondering if we could deal with completion using inlineCompletionProvider in lsp-mode, so that simply M-TAB would work seamlessly.
Is there already some discussion on the topic?
The text was updated successfully, but these errors were encountered: