[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 44793b6e07 20/33: Fix issues #755, #401; severity
From: |
Stefan Kangas |
Subject: |
[elpa] externals/eglot 44793b6e07 20/33: Fix issues #755, #401; severity not set in textDocument/publishDiagnostics |
Date: |
Sat, 8 Jan 2022 12:30:50 -0500 (EST) |
branch: externals/eglot
commit 44793b6e0756eed04735afcbb89d3803aa8562eb
Author: Stephen Leake <stephen_leake@stephe-leake.org>
Commit: Stephen Leake <stephen_leake@stephe-leake.org>
Fix issues #755, #401; severity not set in textDocument/publishDiagnostics
* eglot.el (eglot-handle-notification): Handle severity not set.
---
eglot.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/eglot.el b/eglot.el
index bf9cf25c33..d889020912 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1,6 +1,6 @@
;;; eglot.el --- Client for Language Server Protocol (LSP) servers -*-
lexical-binding: t; -*-
-;; Copyright (C) 2018-2020 Free Software Foundation, Inc.
+;; Copyright (C) 2018-2021 Free Software Foundation, Inc.
;; Version: 1.7
;; Author: João Távora <joaotavora@gmail.com>
@@ -1603,7 +1603,7 @@ Use `eglot-managed-p' to determine if current buffer is
managed.")
:key #'eglot--major-mode)
(and eglot-extend-to-xref
buffer-file-name
- (gethash (expand-file-name buffer-file-name)
+ (gethash (expand-file-name buffer-file-name)
eglot--servers-by-xrefed-file)))))
(defun eglot--current-server-or-lose ()
@@ -1808,7 +1808,8 @@ COMMAND is a symbol naming the command."
(point-at-eol
(1+ (plist-get (plist-get range :end)
:line)))))))
(eglot--make-diag (current-buffer) beg end
- (cond ((<= sev 1) 'eglot-error)
+ (cond ((null sev) 'eglot-error)
+ ((<= sev 1) 'eglot-error)
((= sev 2) 'eglot-warning)
(t 'eglot-note))
message `((eglot-lsp-diag .
,diag-spec)))))
- [elpa] externals/eglot 122dbb9d6e 14/33: Fix typo in user-visible eglot-ignored-server-capabilities, (continued)
- [elpa] externals/eglot 122dbb9d6e 14/33: Fix typo in user-visible eglot-ignored-server-capabilities, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 9b63f21e75 15/33: Respect completion-regexp-alist in Eglot's completion table, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot c3f1b7b43f 25/33: Fix #779: Correct "GNU ELPA" typo, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 670ee61169 23/33: Close #770: Mark eglot-completion-at-point capf "non-exclusive", Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 5a717c3861 01/33: Fix #671: Allow staying out of flymake-mode, eldoc-mode, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 44504db1ea 28/33: Use `locate-user-emacs-file` instead of `concat`, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 5cc8df63d8 08/33: Fix #702: Consider TRAMP in eglot-alternatives, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 0e6c0619da 09/33: Fix #703: Don't call eglot--executable-find more than needed, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot c17bdf6c98 16/33: Fixup last commit, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 8b15bf726f 19/33: Test javascript-basic with typescript-language-server, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 44793b6e07 20/33: Fix issues #755, #401; severity not set in textDocument/publishDiagnostics,
Stefan Kangas <=
- [elpa] externals/eglot b197e092f9 33/33: ; Fix typos, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 91b3f60d67 31/33: Add yaml-language-server for yaml-mode, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 04d2d6f783 02/33: Fix #649: two typos, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot e498cb171b 07/33: Per #697: Use project-files to know which directory watchers to skip, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 25d20c73cf 05/33: Fix #697, #645: Again speed up directory watching, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot cbb1da42be 12/33: Let eglot-flymake-backend be in flymake-d-functions even if Eglot off, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot a697084d8d 13/33: Fix #719: fall back to prompting user if eglot-alternatives fails, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 1612289ae4 18/33: Fix eglot--tramp-test-2 so it skips without clangd, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 9665359bb6 17/33: Fix workspace/configuration handling when given scopeUri directory, Stefan Kangas, 2022/01/08
- [elpa] externals/eglot 7b1055a188 21/33: Merge commit '8b15bf726faa2d753933a212c3426a63cabab21c', Stefan Kangas, 2022/01/08