Show deprecated completions for deprecated traits
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user