]> git.eshelyaron.com Git - emacs.git/commit
Empty ranges are valid in lsp
authorJoão Távora <joaotavora@gmail.com>
Thu, 21 Jun 2018 22:32:14 +0000 (23:32 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 21 Jun 2018 22:32:14 +0000 (23:32 +0100)
commit7826b265a0ecd9357719b2fb9491c9bcb517d4cc
tree499b9bf01a102578fbd86aa5f5a99738a68473f8
parent81b7c8e7d736d4118cb52afcaf6a46a55646fabf
Empty ranges are valid in lsp

The previous hack in eglot--range-region, designed to appease cquery's
occasional practice of publishing diagnostics with empty regions, was
moved to the proper notification handler.

Reported by mkcms <k.michal@zoho.com>.

* eglot.el (eglot--range-region): Allow empty ranges, which are
allowed in LSP.
(eglot-handle-notification :textDocument/publishDiagnostics): Maybe
fallback to flymake-diag-region here.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/27
lisp/progmodes/eglot.el