aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/protocol.lua
diff options
context:
space:
mode:
authorMathias Fussenegger <f.mathias@zignar.net>2021-02-25 10:08:14 +0100
committerMathias Fussenegger <f.mathias@zignar.net>2021-02-25 10:08:14 +0100
commiteff7666163ce0c81fc1a54eceb8c8d84c314aaad (patch)
tree3745a0eb5c1f2a1beacb3fe4f42180e051e7d4a6 /runtime/lua/vim/lsp/protocol.lua
parente55ded00cfb8432a7bc8af40b477aaf0cba70405 (diff)
downloadrneovim-eff7666163ce0c81fc1a54eceb8c8d84c314aaad.tar.gz
rneovim-eff7666163ce0c81fc1a54eceb8c8d84c314aaad.tar.bz2
rneovim-eff7666163ce0c81fc1a54eceb8c8d84c314aaad.zip
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
Diffstat (limited to 'runtime/lua/vim/lsp/protocol.lua')
-rw-r--r--runtime/lua/vim/lsp/protocol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
index 3e111c154a..388f65c180 100644
--- a/runtime/lua/vim/lsp/protocol.lua
+++ b/runtime/lua/vim/lsp/protocol.lua
@@ -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