-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
implement textDocument/didSave #165
Comments
@prabirshrestha I don't understand. The protocol states the following:
This is a notification from the client to the server. I don't think this is something for the language server to implement. |
My bad. I was sending a request instead of notification and was getting not supported error by the server. Sorry for the noise. |
@prabirshrestha Thank you for checking, Prabir. :) You should also check if the language server you are connected to is actually interested in that event before sending it. Check out the The |
Seems like I need to update |
@prabirshrestha Actually, I think I might have been wrong about when a client should be sending that notification to the server. Sorry about that. I think a client might have to always send the notification unless the For example, my language server only sets a |
@prabirshrestha Actually, I could be wrong of course so you may want to open an issue and ask for clarifications. Sorry for all the confusion that I'm causing! |
Filed an issue at microsoft/language-server-protocol#288. |
In vim-lsp I automatically didSave when a file is saved. Would be good if this was implemented.
https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#textDocument_didSave
The text was updated successfully, but these errors were encountered: