diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2022-01-07 11:56:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 11:56:09 +0100 |
commit | b680392687eeaee521b19d79a1e7effdc2dc1ed7 (patch) | |
tree | 03789e77eadb18e53a4a02a8887db292f31518e4 /runtime/lua/vim/lsp/util.lua | |
parent | bba679c431069396ad28952620316e1f1fd97945 (diff) | |
download | rneovim-b680392687eeaee521b19d79a1e7effdc2dc1ed7.tar.gz rneovim-b680392687eeaee521b19d79a1e7effdc2dc1ed7.tar.bz2 rneovim-b680392687eeaee521b19d79a1e7effdc2dc1ed7.zip |
feat(lsp): skip or reduce debounce after idle (#16881)
The idea of the debounce is to avoid overloading a server with didChange
notifications. So far this used a constant value to group changes within
an interval together and send a single notification. A side effect of
this is that when you were idle, notifications are still delayed.
This commit changes the logic to take the time the last notification
happened into consideration, if it has been greater than the debounce
interval, the debouncing is skipped or at least reduced.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions