Comments (6)
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.
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.
Will update the spec to make this clear.
from language-server-protocol.
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.
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.
Thank you!
from language-server-protocol.
Related Issues (20)
- Allow server to clear a ShowMessage notifications, via timeout or token
- MetaModel.json use during LSP implementation HOT 12
- Specify exactly what "the client will normalize line ending characters" means HOT 2
- Clarify docs: deltaLine and deltaStart fields of semantic tokens relate to the _start_ of the previous token HOT 2
- MetaModel: Missing Types and `TraceValue` vs `TraceValues` HOT 2
- What's the difference about deprecated in Diagnostic and Semantic Token? HOT 2
- Range property in TextDocumentContentChangeEvent inconsistent with comment HOT 1
- Can a client use `window/workDoneProgress/cancel` to cancel a progress token provided by the client? HOT 8
- Add 'linewidth' parameter to 'formatting_options' HOT 1
- Define/document the ways in which clients may/may not change custom-scheme URIs provided by the server
- Unclear handling of nil diagnostic responses
- When are params and error data optional?
- Command line utility for lsp client HOT 1
- Support multiple output channels for log message notifications
- Better document HOT 4
- Server capability for configuration change notifications? HOT 12
- Detailed explain on semantic token types?
- Recommend relationship between error ranges and selections for quickfixes HOT 1
- Clarification on integers and enums HOT 1
- Add "generated" to `SymbolTag`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from language-server-protocol.