diff options
| author | Stefan Monnier | 2024-04-18 23:39:30 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-04-18 23:39:30 -0400 |
| commit | c833892140fbf4be45161bf85d4c1253c5503949 (patch) | |
| tree | 70c3542d8e69e355ea4d8e4f86b26e444684b422 /java | |
| parent | a3f6d92714c31ccb87f56b13ee2606c05493c87d (diff) | |
| download | emacs-c833892140fbf4be45161bf85d4c1253c5503949.tar.gz emacs-c833892140fbf4be45161bf85d4c1253c5503949.zip | |
(eglot--signal-textDocument/didChange): Fix tests
The tests call `eglot--signal-textDocument/didChange` eagerly,
which means in the case where we use `track-changes` that they
call it before the tracker's signal has been called.
So make sure we fetch pending changes even if we haven't yet
been notified of them, and make sure `eglot--versioned-identifier`
is incremented even when the signal is not called.
* lisp/progmodes/eglot.el (eglot--track-changes-fetch)
(eglot--after-change): Increment `eglot--versioned-identifier` here...
(eglot--track-changes-signal): ...instead of here.
(eglot--signal-textDocument/didChange): Try and fetch changes even if the
tracker's signal wasn't called yet.
* test/lisp/progmodes/eglot-tests.el (eglot-tests--get): New function.
(eglot-tests--lsp-abiding-column-1): Use it.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions