Closed cleong14 closed 6 months ago
I can confirm with this. In the personal homepage, I see that the number of accepted completions from Neovim will not increase.
This will require implementing calling the AcceptCompletion
RPC in the extension. This is where it's called in other extensions for example:
@pqn thank you for the additional context!
If I have time, I'll try take a stab at this feature and I'll see if I can figure it out.
@pqn thank you for the additional context!
If I have time, I'll try take a stab at this feature and I'll see if I can figure it out.
This is a proprietary software and it is their responsibility to polish the software delivered to their user.
This will require implementing calling the
AcceptCompletion
RPC in the extension. This is where it's called in other extensions for example:
cmp has a hook cmp.event:on("confirmation_done") which can be used to send the AcceptCompletion request.
This is a proprietary software and it is their responsibility to polish the software delivered to their user.
We at Codeium were not the original authors of this plugin. We simply took it over when the original maintainer and author archived it.
This is a proprietary software and it is their responsibility to polish the software delivered to their user.
We at Codeium were not the original authors of this plugin. We simply took it over when the original maintainer and author archived it.
Additionally, per the LICENSE and the Contributing section of the README, Issues & PRs are accepted.
@milanglacier when you tested your changes, were you able to validate that your profile updated correctly each time you accepted a completion item?
@milanglacier when you tested your changes, were you able to validate that your profile updated correctly each time you accepted a completion item?
Of course They did update.
Awesome.
Maybe it was an anomaly or some discrepancy in my config at the time, but when I tested your changes my profile still only received intermittent updates on completion acceptance.
Glad to hear it works though; thanks for creating the fix & PR!
Awesome.
Maybe it was an anomaly or some discrepancy in my config at the time, but when I tested your changes my profile still only received intermittent updates on completion acceptance.
Glad to hear it works though; thanks for creating the fix & PR!
I use the tab
key which is mapped to cmp.mapping.confirm { select = true },
. I believe cmp.confirm
function must be called so that the hook will be triggered and the AcceptCompletion
request will send.
Awesome. Maybe it was an anomaly or some discrepancy in my config at the time, but when I tested your changes my profile still only received intermittent updates on completion acceptance. Glad to hear it works though; thanks for creating the fix & PR!
I use the
tab
key which is mapped tocmp.mapping.confirm { select = true },
. I believecmp.confirm
function must be called so that the hook will be triggered and theAcceptCompletion
request will send.
The issue was definitely my nvim-cmp
config.
The keymap I use to accept/confirm completions was configured to cmp.mapping.confirm { select = false }
. I think I recall doing this due to confirmed completions overwriting existing text if the completion was accepted in the middle of a line of text.
Changing my config to use cmp.mapping.confirm { select = true }
when accepting a completion fixed the issue for me and my profile appears to be updating correctly for every completion accepted.
Thanks again for your help with the fix @milanglacier!
fixed in #132
Tested and confirmed only codeium.nvim fails to update completions count; codeium.vim updates completions count as expected.