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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user