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:
parent
2fcae17238
commit
3e8534acfc
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue