Giter VIP home page Giter VIP logo

Comments (14)

milanglacier avatar milanglacier commented on August 16, 2024 2

@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.

from codeium.nvim.

milanglacier avatar milanglacier commented on August 16, 2024 2

#132 should solve this.

from codeium.nvim.

pqn avatar pqn commented on August 16, 2024 1

This will require implementing calling the AcceptCompletion RPC in the extension. This is where it's called in other extensions for example:

from codeium.nvim.

milanglacier avatar milanglacier commented on August 16, 2024

I can confirm with this. In the personal homepage, I see that the number of accepted completions from Neovim will not increase.

from codeium.nvim.

cleong14 avatar cleong14 commented on August 16, 2024

@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.

from codeium.nvim.

milanglacier avatar milanglacier commented on August 16, 2024

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.

from codeium.nvim.

fortenforge avatar fortenforge commented on August 16, 2024

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.

from codeium.nvim.

cleong14 avatar cleong14 commented on August 16, 2024

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.

from codeium.nvim.

cleong14 avatar cleong14 commented on August 16, 2024

@milanglacier when you tested your changes, were you able to validate that your profile updated correctly each time you accepted a completion item?

from codeium.nvim.

milanglacier avatar milanglacier commented on August 16, 2024

@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.

from codeium.nvim.

cleong14 avatar cleong14 commented on August 16, 2024

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!

from codeium.nvim.

milanglacier avatar milanglacier commented on August 16, 2024

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.

from codeium.nvim.

cleong14 avatar cleong14 commented on August 16, 2024

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.

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!

from codeium.nvim.

cleong14 avatar cleong14 commented on August 16, 2024

fixed in #132

from codeium.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.