Comments (6)
I think this is possible on the LSP level itself. However since VS Code itself doesn't support any streaming the feature would be disable in LSP in VS Code is used as a client (as it is with streaming already today).
from vscode-languageserver-node.
I have no knowledge of the architecture of LSP, do you have any files that I can read or links to understand how the TextEdit
are being applied on vscode?
I was very confused about who consumes and applies the list of TextEdit
returned to onFormattingDocument
handlers.
If you think the support is simple, I can try to create a PR for that if you point to me which files are involved in this change.
from vscode-languageserver-node.
The support is simple in LSP since it already has support for streaming (see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#partialResults)
Add something like this to VS Code is hard since its API doesn't support streaming right now. See microsoft/vscode#105870 for the corresponding issue in VS Code.
from vscode-languageserver-node.
Oh, I think now I understand, what you are saying is we basically can add support on the LSP of the language itself to PartialResults
, and if the IDE supports that feature, it will use it.
In this case, vscode
didn't support yet.
Until a few days ago, I knew nothing about LSP, I recently discovered that this is a protocol and it is being used by many IDEs, not only VSCode, so that's why I initially thought I could ask to vscode
to add support.
Took me a few days to understand your phrase (and I hope I understand it now).
Anyway, let me know if I understand something incorrectly, I will study more about LSP and see how I can add support to partial results at https://github.com/microsoft/vscode-json-languageservice.
Feel free to close this issue, I think it will be more appropriate to open directly on vscode-json-languageservice
, what do you think?
from vscode-languageserver-node.
I probably understand something wrong, I found no example of usage of PartialResults
, or no one ever tried to implement/add support for it, or I'm searching wrong, any thoughts?
from vscode-languageserver-node.
There is one request kind that support partial results even in VS Code and that is the new pull diagnostics model.
from vscode-languageserver-node.
Related Issues (20)
- Unexpected `textDocument/didOpen` for notebook cell after workspace changed to untrusted HOT 7
- `registerCapability` requests are ignored by the client but not `registerFeature` when using LSP4J HOT 2
- connection.languages.inlineCompletion.on not work HOT 2
- Add Notebook code action kinds to LSP sepc HOT 1
- How to support CompletionItemKind#Color in LSP client completion? HOT 2
- Meta model missing references TraceValue vs TraceValues HOT 1
- Ignoring Server Process Status of 0 HOT 3
- notebook cell doesn't get document highlight request HOT 4
- problem with priority of onCompletion items HOT 2
- Progress percentage should be an uint according to the spec HOT 1
- Fix ProtocolConverter#asWorkspaceEdit to correctly support workspace edits with snippets HOT 2
- New named structs in metamodel should maybe not be "proposed"? HOT 8
- `NotebookCell` is missing `outputs` field HOT 15
- Extend predefined semantic token types to include `label` HOT 1
- Fix CancellationReceiverStrategy type definition to include RequestCancellationReceiverStrategy HOT 1
- changelog?
- Expected sequence of events for an initialization failure HOT 2
- LanguageClient adds an extra `--stdio` argument when using `TransportKind.stdio` HOT 1
- Error compiling test-provider-sample executionCount does not exist on type StatementCoverage
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 vscode-languageserver-node.