Files
neovim/runtime/lua/vim/lsp
Volodymyr Chernetskyi ce5e230af8 fix(lsp): show_document() reports a failed buffer load #41731
Problem:
vim.lsp.util.show_document() can fail to load the target buffer, most
visibly with E325 when another process owns the file's swapfile and the
user declines to open it. The Vim error escapes show_document() and
surfaces inside whichever LSP handler called it, instead of being
reported as a failure to show the document.

Solution:
Load the buffer up front with vim.fn.bufload(), before any of that
state is touched, and report the error instead of raising.

AI-assisted
2026-09-07 16:21:11 +00:00
..
2026-09-07 15:33:22 +01:00
2026-09-07 15:33:22 +01:00
2026-09-07 15:33:22 +01:00
2026-09-07 15:33:22 +01:00
2026-08-23 12:38:07 -04:00