Git Product home page Git Product logo

Comments (6)

rwols avatar rwols commented on May 26, 2024 1

I would expect append behavior otherwise clients get 1+2+3+4+…+n = n(n+1)/2 = O(n^2) items to process.

from language-server-protocol.

dbaeumer avatar dbaeumer commented on May 26, 2024 1

The idea is an append behavior. Think about it as an async iterator where the '$/progress` event is the source of new async items.

from language-server-protocol.

dbaeumer avatar dbaeumer commented on May 26, 2024 1

Will update the spec to make this clear.

from language-server-protocol.

ljw1004 avatar ljw1004 commented on May 26, 2024

The spec is ambiguous on this question:

If a server reports partial result via a corresponding $/progress, the whole result must be reported using n $/progress notifications. The final response has to be empty in terms of result values. This avoids confusion about how the final result should be interpreted, e.g. as another partial result or as a replacing result.

This makes it clear that the final result doesn't replace all the $/progress that came earlier, but we don't know whether each $/progress will replace all the $/progress that came earlier...

from language-server-protocol.

ljw1004 avatar ljw1004 commented on May 26, 2024

ping @dbaeumer, would love to get your answer on this. We've just finished implementing streaming textDocument/references results our Hack LSP server, using just small tweak in our extension to alter the VSCode find-references pane, but we need to decide on the LSP behavior.

from language-server-protocol.

ljw1004 avatar ljw1004 commented on May 26, 2024

Thank you!

from language-server-protocol.

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.