Files
neovim/runtime
Mathias Fußenegger 1743359235 fix(diagnostic): clear stale cache on reset (#21454)
The BufWipeout autocmd is not 100% reliable and may leave stale entries
in the cache. This is sort of a hack/workaround to ensure
`vim.diagnostic.reset` calls don't fail if there are stale cache entries
but instead clears them

Fixes errors like

    Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
    stack traceback:
            [C]: in function 'nvim_exec_autocmds'
            /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'
2022-12-17 19:19:15 -07:00
..
2022-12-08 16:33:38 +01:00
2022-12-08 16:33:38 +01:00
2022-12-12 06:13:23 +01:00
2022-12-08 16:33:38 +01:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2022-12-12 06:13:23 +01:00
2022-08-20 10:04:55 +02:00
2019-07-29 20:50:07 +02:00
2021-04-27 09:21:32 -04:00
2022-12-08 16:33:38 +01:00
2019-07-29 20:50:07 +02:00
2022-09-30 17:15:13 +02:00
2022-10-17 08:19:48 +02:00