ale icon indicating copy to clipboard operation
ale copied to clipboard

[hover] ParseLSPResult sets language 'text' for missing spec

Open oliverralbertini opened this issue 1 year ago • 0 comments

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

oliverralbertini avatar Dec 26 '23 01:12 oliverralbertini