]> git.eshelyaron.com Git - emacs.git/commitdiff
Defer textdocument/formatting requests
authorJoão Távora <joaotavora@gmail.com>
Thu, 21 Jun 2018 12:58:48 +0000 (13:58 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 21 Jun 2018 12:58:48 +0000 (13:58 +0100)
* eglot.el (eglot-format-buffer): Pass DEFERRED to eglot--request.

lisp/progmodes/eglot.el

index 0f366c41a74df48e67a53179d0b35e06c2d1db25..e96a3e68e23d91f7272b642bf73e14c867575fd4 100644 (file)
@@ -1410,7 +1410,8 @@ DUMMY is ignored."
     (list :textDocument (eglot--TextDocumentIdentifier)
           :options (list :tabSize tab-width
                          :insertSpaces
-                         (if indent-tabs-mode :json-false t))))))
+                         (if indent-tabs-mode :json-false t)))
+    :textDocument/formatting)))
 
 (defun eglot-completion-at-point ()
   "EGLOT's `completion-at-point' function."