diff options
| author | glepnir <glephunter@gmail.com> | 2026-09-11 19:49:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-11 07:49:57 -0400 |
| commit | 2a344d8c8484da16471a2856d5e716624b27adfb (patch) | |
| tree | b9bc6beab82007829eda0cc47907a61abbf5ccac /runtime/lua/vim/async/_queue.lua | |
| parent | 67a8407dbab0c065e0a220d31438951fbac4cb06 (diff) | |
| download | rneovim-2a344d8c8484da16471a2856d5e716624b27adfb.tar.gz rneovim-2a344d8c8484da16471a2856d5e716624b27adfb.tar.bz2 rneovim-2a344d8c8484da16471a2856d5e716624b27adfb.zip | |
fix(lsp): snippet is not expanded when resolve races the user #41774
Problem:
on_complete_done() defers clear_word() and the snippet expansion until
completionItem/resolve answers, and drops both when 'changedtick' moved
meanwhile. Typing right after accepting leaves the plain word in the
buffer.
Solution:
Expand before requesting, and anchor the resolved edits with an extmark
instead of gating them on 'changedtick'.
Diffstat (limited to 'runtime/lua/vim/async/_queue.lua')
0 files changed, 0 insertions, 0 deletions