Skip to content

Commit

Permalink
Merge pull request #1116 from lem-project/fix-lsp-mode-invidual-misma…
Browse files Browse the repository at this point in the history
…tch-between-diagnostics-and-completion

Fix invidual mismatch between diagnostics and completion window
  • Loading branch information
cxxxr authored Sep 29, 2023
2 parents f244af9 + deaed78 commit 7c14832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions extensions/lsp-mode/lsp-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
(do-sequence (diagnostic (lsp:publish-diagnostics-params-diagnostics params))
(highlight-diagnostic buffer diagnostic))
(setf (buffer-diagnostic-idle-timer buffer)
(start-timer (make-idle-timer #'popup-diagnostic :name "lsp-diagnostic")
(start-timer (make-idle-timer 'popup-diagnostic :name "lsp-diagnostic")
200
t))))

Expand All @@ -747,7 +747,8 @@
(when (point<= (overlay-start overlay)
(current-point)
(overlay-end overlay))
(display-message (diagnostic-message (overlay-diagnostic overlay)))
(unless (mode-active-p (current-buffer) 'lem/completion-mode:completion-mode)
(display-message (diagnostic-message (overlay-diagnostic overlay))))
(return))))

(defun text-document/publish-diagnostics (params)
Expand Down
3 changes: 2 additions & 1 deletion src/ext/completion-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
:completion-item-label
:completion-item-detail
:run-completion
:completion-end)
:completion-end
:completion-mode)
#+sbcl
(:lock t))
(in-package :lem/completion-mode)
Expand Down

0 comments on commit 7c14832

Please sign in to comment.