diff options
author | Theodor Thornhill <theo@thornhill.no> | 2022-09-09 23:25:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 22:25:50 +0100 |
commit | d2e842bbf51134bfd33943247faa88db99a36842 (patch) | |
tree | ace1282ff775624c4d7d3f2f87bf5402e2b7d02d /test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el | |
parent | dd017359e974ff2bbbb0db8ceba8e13de6035900 (diff) | |
download | emacs-d2e842bbf51134bfd33943247faa88db99a36842.tar.gz emacs-d2e842bbf51134bfd33943247faa88db99a36842.tar.bz2 emacs-d2e842bbf51134bfd33943247faa88db99a36842.zip |
Prefer documentchanges to changes in server-initiated edits
Some servers return both.
PR: https://github.com/joaotavora/eglot/issues/949
* eglot.el (eglot--apply-workspace-edit): When both documentChanges
and changes are present, prefer the documentChanges. By doing that we
ensure that we don't double edit, rendering the document in an
unusable state.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/704
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-add-hook.el')
0 files changed, 0 insertions, 0 deletions