From 4b678a2fa9de46793a7ee802a19a7592db0a903c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Fri, 4 May 2018 14:15:41 +0100 Subject: [PATCH] Include source info in diagnostics * eglot.el (eglot--server-textDocument/publishDiagnostics): Include source info. --- lisp/progmodes/eglot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index d073be2603e..10435a16f8a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -936,7 +936,7 @@ running. INTERACTIVE is t if called interactively." (point)))) (cl-loop for diag-spec across diagnostics collect (cl-destructuring-bind (&key range severity _group - _code _source message) + _code source message) diag-spec (cl-destructuring-bind (&key start end) range @@ -951,7 +951,7 @@ running. INTERACTIVE is t if called interactively." :warning) (t :note)) - message)))) + (concat source ": " message))))) into diags finally (if eglot--current-flymake-report-fn -- 2.39.2