]> git.eshelyaron.com Git - emacs.git/commitdiff
Subject: send clientInfo during the initialize request
authorFelician Nemeth <felician.nemeth@gmail.com>
Wed, 22 Mar 2023 18:34:03 +0000 (18:34 +0000)
committerJoão Távora <joaotavora@gmail.com>
Wed, 22 Mar 2023 18:34:45 +0000 (18:34 +0000)
'clientInfo' arrived in LSP 3.15.0.  LSP clients can use clientInfo to
identify themselves in the initialize request.  This is generally
useful for various debugging tasks.

* lisp/progmodes/eglot.el (eglot--connect): Send clientInfo.
Author:

lisp/progmodes/eglot.el

index d21294276adefbb92346cf0279b4200d9ba77cc6..29883aa960207dc5d8ad815bad7a1a66078f0d3f 100644 (file)
@@ -1313,6 +1313,7 @@ This docstring appeases checkdoc, that's all."
                                         (eq (jsonrpc-process-type server)
                                             'network))
                               (emacs-pid))
+                            :clientInfo '(:name "Eglot")
                             ;; Maybe turn trampy `/ssh:foo@bar:/path/to/baz.py'
                             ;; into `/path/to/baz.py', so LSP groks it.
                             :rootPath (file-local-name