Skip to content
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

send textDocument/didSave only if the server supports it #29

Closed
3 tasks done
prabirshrestha opened this issue Aug 26, 2017 · 0 comments
Closed
3 tasks done

send textDocument/didSave only if the server supports it #29

prabirshrestha opened this issue Aug 26, 2017 · 0 comments
Assignees

Comments

@prabirshrestha
Copy link
Owner

prabirshrestha commented Aug 26, 2017

  • Don't send notification if it is of type TextDocumentSyncKind.
capabilities {
    textDocumentSync: TextDocumentSyncKind.Full,
}
  • Send notification only if it says it supports.
capabilities: {
    textDocumentSync: {
        save: {}
    }
}
  • Send notification along with the text only if includeText is true.
capabilities: {
    textDocumentSync: {
        save: {
            includeText: true
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant