From 6fc53b840d22c08ca444efd4bf693a25e2bb26e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 21 Jun 2018 13:58:48 +0100 Subject: [PATCH] Defer textdocument/formatting requests * eglot.el (eglot-format-buffer): Pass DEFERRED to eglot--request. --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 0f366c41a74..e96a3e68e23 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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." -- 2.39.2