Files
neovim/runtime/lua/vim
glepnir 7ffee0dfbf fix(lsp): apply_text_edits causes unwanted BufDelete events #38778
Problem:
Since 2f6d1d3c88, `apply_text_edits`
unconditionally sets `buflisted=true`, causing spurious BufDelete events
if plugins restore the original 'buflisted' state on unlisted buffers:
65ef6cec1c/src/nvim/option.c (L2159-L2169)

Solution:
- Don't set 'buflisted' in `apply_text_edits`. Set it more narrowly, in
  `apply_workspace_edit` where the semantics requires affected buffers
  to be visible to the user.
- Also skip setting 'buflisted' if it would not be changed, to avoid
  redundant `OptionSet` events.

(cherry picked from commit 6473d007e7)
2026-04-08 21:58:27 +00:00
..
2026-04-06 01:24:32 +00:00
2026-03-11 18:24:57 +01:00
2025-06-06 15:36:48 +01:00
2026-03-28 09:59:54 -04:00
2026-01-09 10:07:15 +01:00
2026-03-11 18:00:18 +01:00
2026-04-08 16:19:48 +00:00
2026-04-08 16:19:48 +00:00
2026-03-11 18:00:18 +01:00
2025-09-16 11:41:36 +08:00
2026-04-01 17:08:38 -04:00