From: Felician Nemeth Date: Wed, 22 Mar 2023 18:34:03 +0000 (+0000) Subject: Subject: send clientInfo during the initialize request X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c5f369bacc414fce6a1ed17733188f4c1cdfe317;p=emacs.git Subject: send clientInfo during the initialize request '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: --- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index d21294276ad..29883aa9602 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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