diff options
| author | Volodymyr Chernetskyi <volodymyr_chernetskyi@goodyear.com> | 2026-09-07 18:21:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-07 16:21:11 +0000 |
| commit | ce5e230af8d371ba78d04057d7d840bd4c31fd22 (patch) | |
| tree | 1e4f7ebbfd59cd378a1af6f7bde8727c947f07f4 /runtime/syntax/python.vim | |
| parent | 65ef6fdaeef86f8341293942c076b320acf03fd1 (diff) | |
| download | rneovim-ce5e230af8d371ba78d04057d7d840bd4c31fd22.tar.gz rneovim-ce5e230af8d371ba78d04057d7d840bd4c31fd22.tar.bz2 rneovim-ce5e230af8d371ba78d04057d7d840bd4c31fd22.zip | |
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
Diffstat (limited to 'runtime/syntax/python.vim')
0 files changed, 0 insertions, 0 deletions