-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
textDocument/didChange
Did not follow the LSP protocol
#45
Comments
Hi @vincentLiuxiang, could you be more specific what does not follow the LSP? |
@akosyakov In LSP, when the method is
but
the difference is in |
It depends on a language server, the json server used in the example is not able to handle incremental changes, so the client always sends the whole document. A server can communicate it as a part of exchanging initialization capabilities. Look for |
so, if My server support handle incremental changes, I can get the same result like the theia-ide? what's more could you give an example that is closer to the production environment? java, js and so on? |
@akosyakov I am very new in LSP, I have Look for TextDocumentSyncKind in the specification. Thank you very much! |
@vincentLiuxiang You are welcome, I am closing it. |
I know this issue has been closed but I saw the screen shot, there is a "Content-Length: 25x" at the beginning of the data return by web-socket which as same as my project which use the language server provide by monaco-languageclient. This "Content-Length" will cause an error at language server side. But I didn't see it in the example given by monaco-languageclient. I'm wondering why I have this "Content-Length" and will it crash the hole process? |
hi all, I just want to try lsp in monaco, and I was very excited to find this project.
However, When I tried to analyze the websocket data package, I found a bug.
then, I tried to analyze theia-ide, It works fine.
what should I do to solve this problem?
The text was updated successfully, but these errors were encountered: