[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/eglot2emacs 26bd153b90 028/120: Print server command to events b
From: |
João Távora |
Subject: |
feature/eglot2emacs 26bd153b90 028/120: Print server command to events buffer |
Date: |
Thu, 20 Oct 2022 07:16:47 -0400 (EDT) |
branch: feature/eglot2emacs
commit 26bd153b9087635ca4a820e253ac0fe6ca21df64
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Print server command to events buffer
* eglot.el (eglot--connect): Print server command to events
buffer.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/476
---
lisp/progmodes/eglot.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index b97e3a4e66..9536a72a26 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1078,16 +1078,20 @@ This docstring appeases checkdoc, that's all."
(nickname (file-name-base (directory-file-name default-directory)))
(readable-name (format "EGLOT (%s/%s)" nickname managed-major-mode))
autostart-inferior-process
+ server-info
(contact (if (functionp contact) (funcall contact) contact))
(initargs
(cond ((keywordp (car contact)) contact)
((integerp (cadr contact))
+ (setq server-info (list (format "%s:%s" (car contact)
+ (cadr contact))))
`(:process ,(lambda ()
(apply #'open-network-stream
readable-name nil
(car contact) (cadr contact)
(cddr contact)))))
((and (stringp (car contact)) (memq :autoport contact))
+ (setq server-info (list "<inferior process>"))
`(:process ,(lambda ()
(pcase-let ((`(,connection . ,inferior)
(eglot--inferior-bootstrap
@@ -1101,7 +1105,7 @@ This docstring appeases checkdoc, that's all."
(let ((default-directory default-directory))
(make-process
:name readable-name
- :command (eglot--cmd contact)
+ :command (setq server-info (eglot--cmd contact))
:connection-type 'pipe
:coding 'utf-8-emacs-unix
:noquery t
@@ -1122,6 +1126,9 @@ This docstring appeases checkdoc, that's all."
initargs))
(cancelled nil)
(tag (make-symbol "connected-catch-tag")))
+ (when server-info
+ (jsonrpc--debug server "Running language server: %s"
+ (string-join server-info " ")))
(setf (eglot--saved-initargs server) initargs)
(setf (eglot--project server) project)
(setf (eglot--project-nickname server) nickname)
- branch feature/eglot2emacs created (now 0186faf2a1), João Távora, 2022/10/20
- feature/eglot2emacs bbdfbf0456 006/120: Add pyright language server support for python-mode, João Távora, 2022/10/20
- feature/eglot2emacs a35f6a7f9a 010/120: Support language server for html, css, json and docker, João Távora, 2022/10/20
- feature/eglot2emacs b527764963 023/120: Support racket-langserver, João Távora, 2022/10/20
- feature/eglot2emacs eacc40e3bf 015/120: ; update copyright years, João Távora, 2022/10/20
- feature/eglot2emacs 1616da4f26 030/120: * eglot.el (eglot-strict-mode): very minor docfix., João Távora, 2022/10/20
- feature/eglot2emacs 6a6f4c3d27 041/120: Don't use :exclusive no, João Távora, 2022/10/20
- feature/eglot2emacs 26bd153b90 028/120: Print server command to events buffer,
João Távora <=
- feature/eglot2emacs abfb193201 032/120: Remove unnecessary compatibility code, João Távora, 2022/10/20
- feature/eglot2emacs 85ecf46a18 046/120: Have a couple of lsp faces inherit from basic "shadow", João Távora, 2022/10/20
- feature/eglot2emacs 6d815aaa98 057/120: Tweak on-type-formatting code, João Távora, 2022/10/20
- feature/eglot2emacs b59fa2548e 083/120: Cosmetic decisions guaranteed to tick off someone somewhere (tm), João Távora, 2022/10/20
- feature/eglot2emacs 6717589c57 086/120: Be more conservative with the lsp identifier guess, João Távora, 2022/10/20
- feature/eglot2emacs 3967d22b9c 005/120: ; fix typos, João Távora, 2022/10/20
- feature/eglot2emacs 5c6eb3caa9 074/120: Don't ignore flymake-no-changes-timeout, João Távora, 2022/10/20
- feature/eglot2emacs 6ee995fe6b 094/120: Add marksman server for markdown, João Távora, 2022/10/20
- feature/eglot2emacs 0e8a8697ba 092/120: Merge commit '7738854e09' to fix fallout of force-push in gnu elpa, João Távora, 2022/10/20
- feature/eglot2emacs 51ae66b50c 099/120: Add eglot-show-configuration to debug workspace configurations, João Távora, 2022/10/20