diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-03-01 09:47:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 17:47:56 +0100 |
commit | 014981c9006f9b96b8045e609dc27f4a84da5263 (patch) | |
tree | 9995928eb463bf3b0000b404a1c3d1af7d3b14c7 /runtime/lua/vim/fs.lua | |
parent | f25d126b186e187f539a909824804d4bc88380e0 (diff) | |
download | rneovim-014981c9006f9b96b8045e609dc27f4a84da5263.tar.gz rneovim-014981c9006f9b96b8045e609dc27f4a84da5263.tar.bz2 rneovim-014981c9006f9b96b8045e609dc27f4a84da5263.zip |
fix(lsp): only fire LspDetach for attached buffers (#22468)
If the LSP server fails to start then the client never initializes and
thus never calls its on_attach function and an LspAttach event is
never fired. However, the on_exit function still fires a LspDetach
event, so user autocommands that attempt to "clean up" in LspDetach may
run into problems if they assume that the buffer was already attached.
The solution is to only fire an LspDetach event if the buffer was
already attached in the first place.
Diffstat (limited to 'runtime/lua/vim/fs.lua')
0 files changed, 0 insertions, 0 deletions