]> git.eshelyaron.com Git - emacs.git/commitdiff
Include source info in diagnostics
authorJoão Távora <joaotavora@gmail.com>
Fri, 4 May 2018 13:15:41 +0000 (14:15 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 4 May 2018 13:15:41 +0000 (14:15 +0100)
* eglot.el (eglot--server-textDocument/publishDiagnostics):
Include source info.

lisp/progmodes/eglot.el

index d073be2603ed07ac9a46b07d60c818b2dcf2129f..10435a16f8ae6ded7782a3ee4a7bca6b780e6b22 100644 (file)
@@ -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