]> git.lizzy.rs Git - rust.git/commit
More useful fn detail in completion
authorAleksey Kladov <aleksey.kladov@gmail.com>
Fri, 22 Jan 2021 15:59:22 +0000 (18:59 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Fri, 22 Jan 2021 16:15:34 +0000 (19:15 +0300)
commita40f78f92ad2050d6178dfd70374701c6bc826ae
treebd1b08a23eeaecea0b2413454cca2ca0c6631bfe
parent02a17cdffcfdea49981b4642be3027e564d28d9b
More useful fn detail in completion

Detail should be rendered as shtort one line, just dumping fn header
there is not useful, despite the fact that TS does this.

The fact that this is a function should be indicated by the icon, the
same goes for pub/const/async etc qualitfiers

name is already present in the lable (and arg list should be a part of
that, as in idea)

But the return type is the small genuinerlly useful bit of info we can show here
crates/completion/src/completions/dot.rs
crates/completion/src/completions/flyimport.rs
crates/completion/src/completions/qualified_path.rs
crates/completion/src/completions/trait_impl.rs
crates/completion/src/completions/unqualified_path.rs
crates/completion/src/item.rs
crates/completion/src/lib.rs
crates/completion/src/render.rs
crates/completion/src/render/function.rs