yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

Do not return hover info if description is not available

Open bhsubra opened this issue 5 years ago • 1 comments

We are getting results back on hover request even if contents is empty. This would require IDEs to add a check to not render it. Range without contents is not useful. Should the language server return null if description is not available?

Message: { "jsonrpc": "2.0", "id": 46, "result": { "contents": [ "" ], "range": { "start": { "line": 6, "character": 0 }, "end": { "line": 6, "character": 8 } } } }

bhsubra avatar Sep 17 '20 22:09 bhsubra

IMHO, hover should return "title" when "description" is unavailable. At this moment I did see it returning only the title. I also raised #480 for improving hover info.

ssbarnea avatar Jun 03 '21 14:06 ssbarnea

Did #500 also fix this one? I am closing, please let me know if it is not fixed for you.

gorkem avatar Mar 24 '23 17:03 gorkem