diff options
author | Rishikesh Vaishnav <rishhvaishnav@gmail.com> | 2022-07-11 03:48:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 12:48:02 +0200 |
commit | ac10c0f4184a04c82b8e039c546ab32f4a629e30 (patch) | |
tree | 3b66561fd94c0e296cb4ab257bc117352be675eb /test/functional/vimscript/let_spec.lua | |
parent | 95c65a6b221fe6e1cf91e8322e7d7571dc511a71 (diff) | |
download | rneovim-ac10c0f4184a04c82b8e039c546ab32f4a629e30.tar.gz rneovim-ac10c0f4184a04c82b8e039c546ab32f4a629e30.tar.bz2 rneovim-ac10c0f4184a04c82b8e039c546ab32f4a629e30.zip |
fix(lsp): abort pending changes after flush when debouncing (#19314)
Issuing a server request triggers `changetracking.flush` so as to
make sure we're not operating on a stale state. This immediately
triggers notification of any pending changes (as a result of debouncing)
to the server. However, this happens in addition to the notification
that is waiting on the debounce delay. Because we `nil`
`buf_state.pending_change` when it is called, the fix is to
also check that this is non-`nil` when it is called and exit if it is,
as this being `nil` would mean that it originates from a pending change
that has already been flushed out.
Diffstat (limited to 'test/functional/vimscript/let_spec.lua')
0 files changed, 0 insertions, 0 deletions