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:
Michael Sloan 2025-01-16 03:56:46 -07:00 committed by GitHub
parent 0dbe34d2ae
commit 55e1e831a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 10 deletions

View file

@ -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)