-
Notifications
You must be signed in to change notification settings - Fork 328
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
IConnection#onWillSaveTextDocumentWaitUntil is never called #274
Comments
rictic
added a commit
to rictic/vscode-languageserver-node
that referenced
this issue
Nov 18, 2017
Perfect! I totally missed that. Thank you! I sent over a PR adding some docs to that effect to help the next person in my shoes :) |
@rcjsuen thanks for explaining this. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm implementing a "fix lint errors on save" feature in my language server. The simplest way to do this seems to be listening for
IConnection#onWillSaveTextDocumentWaitUntil
and responding with someTextEdit
s, but my handler is never called. Same thing forIConnection#onWillSaveTextDocument
andTextDocuments#onWillSaveWaitUntil
.The
IConnection#onDidSaveTextDocument
handler is called, and the rest of my language server is working fine (autocomplete, diagnostics, code actions, etc etc).I'm guessing that there's probably somewhere that I need to opt into receiving these events, but I've been poking around all morning and haven't found anything.
More details:
textDocumentSync
capability isTextDocuments#syncKind
which I think isFull
The text was updated successfully, but these errors were encountered: