mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Show deprecated completions for deprecated traits
This commit is contained in:
parent
cc663a7b0c
commit
ca65488276
8 changed files with 69 additions and 28 deletions
|
@ -83,6 +83,9 @@ pub(crate) fn completion_list_with_config(
|
|||
let width = label_width.saturating_sub(monospace_width(it.label()));
|
||||
format_to!(buf, "{:width$} {}", "", detail, width = width);
|
||||
}
|
||||
if it.deprecated() {
|
||||
format_to!(buf, " DEPRECATED");
|
||||
}
|
||||
format_to!(buf, "\n");
|
||||
buf
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue