]> git.eshelyaron.com Git - emacs.git/commitdiff
Change capability 'documentchanges' to t
authorFelicián Németh <felician.nemeth@gmail.com>
Sat, 12 Mar 2022 09:57:53 +0000 (10:57 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Mar 2022 09:57:53 +0000 (09:57 +0000)
Eglot does support woskspaceEdit/documentChanges, but failed to
advertise this fact.

Per https://github.com/joaotavora/eglot/issues/873.

* eglot.el (eglot-client-capabilities): Set documentChanges to t.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/853

lisp/progmodes/eglot.el

index 5b4d419678014a67ae50c78a29becba702f84e0f..cc0a06f4cbd788259435e444d7fb38a29328ab09 100644 (file)
@@ -649,7 +649,7 @@ treated as in `eglot-dbind'."
             :workspace (list
                         :applyEdit t
                         :executeCommand `(:dynamicRegistration :json-false)
-                        :workspaceEdit `(:documentChanges :json-false)
+                        :workspaceEdit `(:documentChanges t)
                         :didChangeWatchedFiles `(:dynamicRegistration t)
                         :symbol `(:dynamicRegistration :json-false)
                         :configuration t)