Make language registry optional in parse_markdown
(#23221)
Motivation for this is using markdown for keymap error notifications in #23113 Release Notes: - N/A
This commit is contained in:
parent
0dbe34d2ae
commit
55e1e831a1
5 changed files with 14 additions and 10 deletions
|
@ -4418,7 +4418,8 @@ impl LspStore {
|
|||
Documentation::Undocumented
|
||||
} else if response.documentation_is_markdown {
|
||||
Documentation::MultiLineMarkdown(
|
||||
markdown::parse_markdown(&response.documentation, &language_registry, None).await,
|
||||
markdown::parse_markdown(&response.documentation, Some(&language_registry), None)
|
||||
.await,
|
||||
)
|
||||
} else if response.documentation.lines().count() <= 1 {
|
||||
Documentation::SingleLine(response.documentation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue