1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-17 10:25:56 -07:00

Eglot: unkeywordize keywordized 'changes' URI's

* lisp/progmodes/eglot.el (eglot--apply-workspace-edit):
Unkeywordize uri.
This commit is contained in:
João Távora 2026-04-29 10:36:17 +01:00
parent 2fcae17238
commit 3e8534acfc

View file

@ -4526,7 +4526,12 @@ the edit was attempted and optionally why not."
(unless (and changes documentChanges)
;; Prefer `documentChanges' over sort-of-deprecated `changes'.
(cl-loop for (uri edits) on changes by #'cddr
do (push (text-edit-op uri edits nil) prepared)))
do (push (text-edit-op
;; HACK: `uri' has been keywordized by
;; jsonrpc--read, unkeywordize it.
(substring (symbol-name uri) 1)
edits nil)
prepared)))
;; Apply edits to untitled: buffers unconditionally; they can't
;; be diffed and need no confirmation.
(cl-loop for op in prepared