Enable completion menu to resolve documentation when guest

This commit is contained in:
Julia 2023-10-10 00:16:15 -04:00
parent 7020050b06
commit 354882f2c0
8 changed files with 207 additions and 94 deletions

View file

@ -1466,12 +1466,14 @@ impl LspCommand for GetCompletions {
}
let documentation = if let Some(lsp_docs) = &lsp_completion.documentation {
prepare_completion_documentation(
lsp_docs,
&language_registry,
language.clone(),
Some(
prepare_completion_documentation(
lsp_docs,
&language_registry,
language.clone(),
)
.await,
)
.await
} else {
None
};