mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +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.