Giter Site home page Giter Site logo

Comments (10)

manateelazycat avatar manateelazycat commented on May 25, 2024

Thanks for feedback, I was so tire recently.

I will have a look when I have free time.

Any PR are welcome.

from lsp-bridge.

anonimitoraf avatar anonimitoraf commented on May 25, 2024

I see. Cool, I'll see if I can fix it!

from lsp-bridge.

manateelazycat avatar manateelazycat commented on May 25, 2024

We should cache document in

def process_response(self, response: dict) -> None:

Not send all document from Python to Elisp.

We just need fetch one document when user switch candiate in corfu.

from lsp-bridge.

anonimitoraf avatar anonimitoraf commented on May 25, 2024

Sorry, I don't understand. Are you saying that's potentially what's causing corfu-doc to not work?

from lsp-bridge.

manateelazycat avatar manateelazycat commented on May 25, 2024

Sorry, I don't understand. Are you saying that's potentially what's causing corfu-doc to not work?

Becasue we did not parse doc content from textDocument/completion response, it's not a bug of corfu-doc

from lsp-bridge.

anonimitoraf avatar anonimitoraf commented on May 25, 2024

AH! I see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/ (the field documentation is missing). I'll try it out and make a PR, thanks!

from lsp-bridge.

anonimitoraf avatar anonimitoraf commented on May 25, 2024

Actually, sorry I'm a bit lost on how I'd go about this.

My thoughts:

  • Somehow register some sort of hook (via corfu or company) for when the selected candidate is changed - TODO I need to find out how
  • Execute a "hover" request
  • Somehow inject the "hover" response into the completion candidates list - TODO I need to find out how

Is this similar to what you were thinking?

from lsp-bridge.

manateelazycat avatar manateelazycat commented on May 25, 2024
  1. You need find out how to hook corfu candidate selected
  2. Then send completionitem/resolve request to python, details see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem_resolve
  3. After receive response of completionitem/resolve, pick up documentation property from response json, show with corfu-doc

from lsp-bridge.

manateelazycat avatar manateelazycat commented on May 25, 2024

@anonimitoraf Has fixed by 779bb42

Need install corfu-doc.

from lsp-bridge.

anonimitoraf avatar anonimitoraf commented on May 25, 2024

Oh damn thanks! Will learn from your code

from lsp-bridge.

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.