LSP: Resolve text_document_save capability according to spec

Fixes https://github.com/neovim/neovim/issues/13989
See https://github.com/microsoft/language-server-protocol/issues/288
This commit is contained in:
Mathias Fussenegger
2021-02-25 10:08:14 +01:00
parent e55ded00cf
commit eff7666163
2 changed files with 2 additions and 1 deletions

View File

@@ -938,7 +938,7 @@ function protocol.resolve_capabilities(server_capabilities)
text_document_did_change = textDocumentSync;
text_document_will_save = false;
text_document_will_save_wait_until = false;
text_document_save = false;
text_document_save = true;
text_document_save_include_text = false;
}
elseif type(textDocumentSync) == 'table' then