Skip to content

Commit c3e7a37

Browse files
yyonchobrotzeit
authored andcommitted
Use flycheck to update the diagnostics
- fixes #266
1 parent 271b47c commit c3e7a37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lsp-ui-sideline.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ This does not toggle display of flycheck diagnostics or code actions."
558558
(lsp-ui-sideline-mode
559559
(add-hook 'post-command-hook 'lsp-ui-sideline nil t)
560560
(advice-add 'company-pseudo-tooltip-frontend :before 'lsp-ui-sideline--hide-before-company)
561-
(add-hook 'lsp-after-diagnostics-hook 'lsp-ui-sideline--diagnostics-changed nil t)
561+
(add-hook 'flycheck-after-syntax-check-hook 'lsp-ui-sideline--diagnostics-changed nil t)
562562
(dolist (cmd lsp-ui-sideline-cmd-erase)
563563
(advice-add cmd :before 'lsp-ui-sideline--erase))
564564
(when lsp-ui-sideline-show-diagnostics
@@ -567,7 +567,7 @@ This does not toggle display of flycheck diagnostics or code actions."
567567
(setq lsp-ui-sideline--tag nil)
568568
(advice-remove 'company-pseudo-tooltip-frontend 'lsp-ui-sideline--hide-before-company)
569569
(lsp-ui-sideline--delete-ov)
570-
(remove-hook 'lsp-after-diagnostics-hook 'lsp-ui-sideline--diagnostics-changed t)
570+
(remove-hook 'flycheck-after-syntax-check-hook 'lsp-ui-sideline--diagnostics-changed t)
571571
(remove-hook 'post-command-hook 'lsp-ui-sideline t)
572572
(dolist (cmd lsp-ui-sideline-cmd-erase)
573573
(advice-remove cmd 'lsp-ui-sideline--erase))

0 commit comments

Comments
 (0)