From 62e1f68c1f2363f7ebe8f1c2762e472f3b5de46a Mon Sep 17 00:00:00 2001 From: Ivan Yonchovski Date: Tue, 14 May 2024 17:30:10 +0300 Subject: [PATCH] Use the proper check for "textDocument/hover" support Fixes https://github.com/emacs-lsp/lsp-java/issues/476 --- lsp-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp-mode.el b/lsp-mode.el index 1b8460adb2..a372f39132 100644 --- a/lsp-mode.el +++ b/lsp-mode.el @@ -5257,7 +5257,7 @@ If EXCLUDE-DECLARATION is non-nil, request the server to include declarations." lsp--eldoc-saved-message nil) (if (looking-at-p "[[:space:]\n]") (setq lsp--eldoc-saved-message nil) ; And returns nil. - (when (and lsp-eldoc-enable-hover (lsp--capability :hoverProvider)) + (when (and lsp-eldoc-enable-hover (lsp-feature? "textDocument/hover")) (lsp-request-async "textDocument/hover" (lsp--text-document-position-params)