bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#57725: 29.0.50; eglot: Error when using :initializationOptions


From: João Távora
Subject: bug#57725: 29.0.50; eglot: Error when using :initializationOptions
Date: Sat, 17 Sep 2022 20:09:25 +0100

In the future, I would suggest the other direction.  Ask me or Stefan to close the ticket at the Eglot tracker.

Anyway, I think this two-liner patch fixes the problem and doesn't have any unintended side-effects for M-x eglot-reconnect.

diff --git a/eglot.el b/eglot.el
index ff94d5ca5f..3b1b1a9536 100644
--- a/eglot.el
+++ b/eglot.el
@@ -796,6 +796,8 @@ treated as in `eglot-dbind'."
   :documentation
   "Represents a server. Wraps a process for LSP communication.")
 
+(cl-defmethod initialize-instance :before ((_server eglot-lsp-server) &optional args)
+  (cl-remf args :initializationOptions))
 
 ;;; Process management
 (defvar eglot--servers-by-project (make-hash-table :test #'equal)

On Sat, Sep 17, 2022 at 5:41 PM Stefan Kangas <stefankangas@gmail.com> wrote:
Augusto Stoffel <arstoffel@gmail.com> writes:

> Yes, please close this ticket here at the Emacs tracker.

Done.


--
João Távora

reply via email to

[Prev in Thread] Current Thread [Next in Thread]