aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-12-19 12:49:56 -0800
committerGitHub <noreply@github.com>2021-12-19 12:49:56 -0800
commitd6b939a13f0eb0660b1d59ed456d6f379b7c1b66 (patch)
treeb80e8e9b8ed2eca6c541bbfce7512cec154ffa57 /runtime/lua/vim/lsp/util.lua
parent115d4da88261d1f464b015622888504a26aef434 (diff)
downloadrneovim-d6b939a13f0eb0660b1d59ed456d6f379b7c1b66.tar.gz
rneovim-d6b939a13f0eb0660b1d59ed456d6f379b7c1b66.tar.bz2
rneovim-d6b939a13f0eb0660b1d59ed456d6f379b7c1b66.zip
fix(lsp): avoid attaching to unloaded buffers (#16723)
Closes https://github.com/neovim/neovim/issues/16562 https://github.com/neovim/neovim/issues/16249 https://github.com/neovim/neovim/issues/16297 * buf_attach_client can be called on an unloaded buffer * on_attach will prematurely fail, while the language server client tracks this buffer as attached * The language server client will track this buffer as attached despite textDocument/didChange notifications not being sent to the server * Instead, check if the buffer is loaded and return early, warning via the lsp logger that buf_attach_client was called on an invalid buffer
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions