Improve formatting of function autocompletion labels in Rust

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra
2022-02-02 18:43:55 +01:00
co-authored by Nathan Sobo Max Brunsfeld
parent 8d7815456c
commit 8149bcbb13
7 changed files with 63 additions and 21 deletions
+2
View File
@@ -883,6 +883,7 @@ impl MultiBuffer {
completion.old_range.end,
),
new_text: completion.new_text,
label: completion.label,
lsp_completion: completion.lsp_completion,
})
.collect()
@@ -939,6 +940,7 @@ impl MultiBuffer {
old_range: completion.old_range.start.text_anchor
..completion.old_range.end.text_anchor,
new_text: completion.new_text,
label: completion.label,
lsp_completion: completion.lsp_completion,
},
true,