Skip to content

Commit

Permalink
Fix invidual mismatch between diagnostics and completion window
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Sep 29, 2023
1 parent 6ba0886 commit deaed78
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 deaed78

Please sign in to comment.