diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-02-25 10:25:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 10:25:14 -0800 |
commit | 0c7610cf9dd6aa190676fb2ecc8e6cce34f80962 (patch) | |
tree | a5759769abd6c0d0e4a81c6d2305497cb50ccef1 | |
parent | a2b6e5ed4ecdd2733ee71656ee0df6f2ce4aaf6c (diff) | |
parent | eff7666163ce0c81fc1a54eceb8c8d84c314aaad (diff) | |
download | rneovim-0c7610cf9dd6aa190676fb2ecc8e6cce34f80962.tar.gz rneovim-0c7610cf9dd6aa190676fb2ecc8e6cce34f80962.tar.bz2 rneovim-0c7610cf9dd6aa190676fb2ecc8e6cce34f80962.zip |
Merge pull request #14014 from mfussenegger/textDocumentSync
LSP: Resolve text_document_save capability according to spec
-rw-r--r-- | runtime/lua/vim/lsp/protocol.lua | 2 | ||||
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 1 |
2 files changed, 2 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 diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index b36bfdfd9b..8ac81daeef 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -333,6 +333,7 @@ describe('LSP', function() client.stop() local full_kind = exec_lua("return require'vim.lsp.protocol'.TextDocumentSyncKind.Full") eq(full_kind, client.resolved_capabilities().text_document_did_change) + eq(true, client.resolved_capabilities().text_document_save) end; on_exit = function(code, signal) eq(0, code, "exit code", fake_lsp_logfile) |