Skip to content

Commit

Permalink
Merge pull request joaotavora#759 from stephe-ada-guru/master
Browse files Browse the repository at this point in the history
Fix issues joaotavora#755, joaotavora#401; severity not set in textDocument/publishDiagnostics
  • Loading branch information
stephe-ada-guru authored Nov 16, 2021
2 parents 8b15bf7 + 7b1055a commit 55c13a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eglot.el
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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 ()
Expand Down Expand Up @@ -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)))))
Expand Down

0 comments on commit 55c13a9

Please sign in to comment.