diff options
author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-04-25 21:58:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 14:58:35 +0200 |
commit | 78d58eaf61b361ed9b2849ecc1afc99897c01058 (patch) | |
tree | d93e0aac5512535518d01d8fadbdc61fe8dbf169 /runtime/lua/vim/lsp.lua | |
parent | c9f4cac3c9ae328156f72d7b61b4490e9ecc754c (diff) | |
download | rneovim-78d58eaf61b361ed9b2849ecc1afc99897c01058.tar.gz rneovim-78d58eaf61b361ed9b2849ecc1afc99897c01058.tar.bz2 rneovim-78d58eaf61b361ed9b2849ecc1afc99897c01058.zip |
lsp: remove buffer version on buffer_detach (#12029)
When we save the buffer, the buffer is detached and attached again.
So the client also needs to remove the buffer version once.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index afff4d9900..17135e078c 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -198,6 +198,7 @@ local function text_document_did_open_handler(bufnr, client) } } client.notify('textDocument/didOpen', params) + util.buf_versions[bufnr] = params.textDocument.version end --- LSP client object. @@ -722,6 +723,7 @@ function lsp.buf_attach_client(bufnr, client_id) client.notify('textDocument/didClose', params) end end) + util.buf_versions[bufnr] = nil all_buffer_active_clients[bufnr] = nil end; -- TODO if we know all of the potential clients ahead of time, then we |