Skip to content

Commit

Permalink
Close #195: remove a hard dependency on flymake-mode
Browse files Browse the repository at this point in the history
* eglot.el (eglot-handle-notification): Don't specifically check for
flymake-mode before reporting diagnostics.
  • Loading branch information
joaotavora committed Dec 27, 2018
1 parent e8b9cbf commit 7b0d845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ COMMAND is a symbol naming the command."
(t 'eglot-note))
message `((eglot-lsp-diag . ,diag-spec)))))
into diags
finally (cond ((and flymake-mode eglot--current-flymake-report-fn)
finally (cond (eglot--current-flymake-report-fn
(funcall eglot--current-flymake-report-fn diags
;; If the buffer hasn't changed since last
;; call to the report function, flymake won't
Expand Down

0 comments on commit 7b0d845

Please sign in to comment.