aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2023-03-01 09:47:56 -0700
committerGitHub <noreply@github.com>2023-03-01 17:47:56 +0100
commit014981c9006f9b96b8045e609dc27f4a84da5263 (patch)
tree9995928eb463bf3b0000b404a1c3d1af7d3b14c7 /test/functional/lua
parentf25d126b186e187f539a909824804d4bc88380e0 (diff)
downloadrneovim-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 'test/functional/lua')
0 files changed, 0 insertions, 0 deletions