ale
ale copied to clipboard
[hover] ParseLSPResult sets language 'text' for missing spec
I have an LSP that is returning markdown code blocks on Hover with no language specified, e.g.
```
Foobar
```
As a result, you get "```" in the message line which is not that useful.
I made the regex to catch the first code fence accept empty language as well, and if it's empty, we set it to "text".
This makes it so that LSPs that return no language still produce legible restuls on the message line.
Fixes dense-analysis/ale#4698