]> git.eshelyaron.com Git - emacs.git/commit
Reduce eldoc noise from hover messages
authorjicksaw <jicksaw@pm.me>
Thu, 30 Jun 2022 07:39:33 +0000 (10:39 +0300)
committerGitHub <noreply@github.com>
Thu, 30 Jun 2022 07:39:33 +0000 (08:39 +0100)
commitf8c8c70f8a7ec5649b5dd3f5af559f59eff65724
tree9b6c81da5c5f87f1dcd63410612ae11a6f1a2775
parent68fbcbd6207819b9d653362e66236ea5e04e9b7d
Reduce eldoc noise from hover messages

Also close https://github.com/joaotavora/eglot/issues/985

Only echo hover response content, without response range.

LSP specification says the range is meant to visualize a hover.
Maybe echoing the range is useful for some, but it seems
non-standard behavior.

Example issue: haskell-language-server responds with range set to
whole file when hovering a comment -> Large, useless eldoc

* eglot.el (eglot--hover-info): Remove text selected by range from
output

Copyright-paperwork-exempt: Yes
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/514
lisp/progmodes/eglot.el