Files
neovim/runtime
github-actions[bot] bb14e22795 [Backport release-0.7] fix(lsp): abort pending changes after flush when debouncing (#19318)
fix(lsp): abort pending changes after flush when debouncing

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.

(cherry picked from commit d7bb2b4202)

Co-authored-by: Rishikesh Vaishnav <rishhvaishnav@gmail.com>
2022-07-12 09:44:30 +02:00
..
2021-05-01 14:22:52 -04:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2014-12-19 15:28:49 -05:00
2021-03-09 19:21:26 +01:00
2021-11-27 19:39:42 +01:00
2019-07-29 20:50:07 +02:00
2021-04-27 09:21:32 -04:00
2019-07-29 20:50:07 +02:00
2022-06-26 08:08:22 -07:00
2021-05-01 22:29:03 -04:00
2021-05-01 22:29:02 -04:00