aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorjdrouhard <john@drouhard.dev>2026-07-07 11:23:59 -0500
committerGitHub <noreply@github.com>2026-07-07 12:23:59 -0400
commit6a6431cb99f411a85ffb3157023cd4726614485d (patch)
treea9d2d470a80623ef043d033fff25e76bc662dfc3 /runtime/lua/vim/provider/python.lua
parent5231ad13574a4c5ef65c4480165c984a6e83d0dc (diff)
downloadrneovim-6a6431cb99f411a85ffb3157023cd4726614485d.tar.gz
rneovim-6a6431cb99f411a85ffb3157023cd4726614485d.tar.bz2
rneovim-6a6431cb99f411a85ffb3157023cd4726614485d.zip
refactor(lsp): use LspNotify for codelens #40604
Problem: The codelens LSP module was using its own raw buffer events and its own debounce mechanism for refreshing code lens in attached buffers. Solution: Switch the module to using the LspNotify autocmd events. LspNotify fires just after document versions are synced with the server and provides a built in debounce mechanism for changes. Additionally, this fixes some bugs with the previous implementation: 1. The workspace/codeLens/refresh handler re-requested codelens for all buffers but when the response came back, it forced an extra redraw after clearing the work the handler had just done. 2. Document synchronization was reworked to be more resilient to multiple clients providing codelens for a single buffer. The latest document version is now separately tracked per client (and per client's lenses per row) instead of for the buffer as a whole. This allows the on_win() function to properly redraw all codelens even when different clients' responses for a particular document version come back at different times.
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions