Actually display the correct completion's doc
This commit is contained in:
parent
e802c072f7
commit
1584dae9c2
1 changed files with 2 additions and 1 deletions
|
@ -1050,7 +1050,8 @@ impl CompletionsMenu {
|
|||
Flex::row()
|
||||
.with_child(list)
|
||||
.with_children({
|
||||
let completion = &self.completions[selected_item];
|
||||
let mat = &self.matches[selected_item];
|
||||
let completion = &self.completions[mat.candidate_id];
|
||||
let documentation = &completion.lsp_completion.documentation;
|
||||
|
||||
if let Some(lsp::Documentation::MarkupContent(content)) = documentation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue