mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00

`lsp.diagnostic.get_all()` was returning diagnotics for `:bwipeout`-ed buffers because the diagnostic cache is not cleared. The first argument of on_detach callback is the string "detach", not the bufnr.