emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/eglot ea918ab 066/139: Include source info in diagnosti


From: João Távora
Subject: [elpa] externals/eglot ea918ab 066/139: Include source info in diagnostics
Date: Mon, 14 May 2018 09:54:55 -0400 (EDT)

branch: externals/eglot
commit ea918abb952c3e624e57681a9b313df32ddcd014
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Include source info in diagnostics
    
    * eglot.el (eglot--server-textDocument/publishDiagnostics):
    Include source info.
---
 eglot.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eglot.el b/eglot.el
index d073be2..10435a1 100644
--- a/eglot.el
+++ b/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



reply via email to

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