Open ghost opened 1 year ago
Done some more debugging.
Setting 'lsp-eldoc-render-all
to t
helps.
Maybe this logic can be extended.
"Tends to be quite long" -> Maybe test for this to be true?
Just displaying the first line in this case completely fails since the string starts with a line break.
A minimal improvement could strip/skip leading line breaks ('lsp--handle-rendered-for-echo-area
)
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
When using a version of
typescript-language-server
above1.2.0
, when hovering a symbol, it is not shown in the ~minibuffer~ echo area.I've done some debugging, and found a difference in the response w.r.t. textDocument/hover:
With @1.2.0
With @3.3.0
So the data structure for
content
is quite different, probably causing it not to display at all.Newer version also is in markdown format -> maybe this is a setting?
Steps to reproduce
Install a version of
typescript-language-server
above 1.2.0, for instanceyarn global add typescript-language-server@3.3.0
Open typescript project, hover a symbol.
Expected behavior
To get the info returned in
hover
action shown in the echo area.Which Language Server did you use?
lsp-javascript / ts-ls / typescript-language-server
OS
Linux
Error callstack
No response
Anything else?
No response