Skip to content

Commit

Permalink
[chore] Update comments with old document/onHover API
Browse files Browse the repository at this point in the history
Why?:
- In the current form of the LSP specification `document/onHover` is replaced by
  `textDocument/hover`.

This change addresses the need by:
- Replace `document/onHover` with `textDocument/hover`
  • Loading branch information
Tobias Heinlein committed Nov 27, 2024
1 parent 799ca89 commit fbcf09d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lsp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ supported by the language server."
:group 'lsp-mode)

(defcustom lsp-eldoc-render-all nil
"Display all of the info returned by document/onHover.
"Display all of the info returned by textDocument/hover.
If this is set to nil, `eldoc' will show only the symbol information."
:type 'boolean
:group 'lsp-mode)
Expand Down Expand Up @@ -5580,7 +5580,7 @@ When language is nil render as markup if `markdown-mode' is loaded."
(car (s-lines (s-trim (lsp--render-element contents)))))

(defun lsp--render-on-hover-content (contents render-all)
"Render the content received from `document/onHover' request.
"Render the content received from `textDocument/hover' request.
CONTENTS - MarkedString | MarkedString[] | MarkupContent
RENDER-ALL - nil if only the signature should be rendered."
(cond
Expand Down

0 comments on commit fbcf09d

Please sign in to comment.