rust-analyzer/crates
bors[bot] eec64ec01b
Merge #7992
7992: improved completion sorting for functions and methods r=JoshMcguigan a=JoshMcguigan

This PR improves completion sorting for functions and methods. Related to #7935.

### Before

The methods are being sorted by `coc` by closeness in file. 

![pre-fn-relevance](https://user-images.githubusercontent.com/22216761/111018669-fe3d3f00-836e-11eb-9607-cc05af080a6a.png)

### After

Notice `bbb()` on top (type + name match), followed by `ddd()` (type match).

![image](https://user-images.githubusercontent.com/22216761/111018680-0e551e80-836f-11eb-94b1-c88336ecbc6e.png)


Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
2021-03-15 15:53:15 +00:00
..
base_db Fixed remaining references to AnalysisChange (now: Change) 2021-02-28 12:57:41 +01:00
cfg Add runnables::related_tests 2021-02-27 18:00:17 +03:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir Merge #8020 2021-03-15 14:08:26 +00:00
hir_def Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
hir_expand some clippy::performance fixes 2021-03-15 10:19:59 +01:00
hir_ty Merge #8029 2021-03-15 14:42:26 +00:00
ide Merge #8029 2021-03-15 14:42:26 +00:00
ide_assists Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
ide_completion implement function completion scoring 2021-03-15 08:35:28 -07:00
ide_db Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
ide_ssr Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
mbe Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
parser Fix remaining references to cargo xtask codegen 2021-03-12 15:10:33 +01:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api Add test for proc-macro meta info retrieval 2021-03-15 23:38:22 +08:00
proc_macro_srv Add test for proc-macro meta info retrieval 2021-03-15 23:38:22 +08:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile add more counts 2021-01-27 12:39:19 +03:00
project_model some clippy::performance fixes 2021-03-15 10:19:59 +01:00
rust-analyzer Enable proc-macros by default 2021-03-15 18:19:08 +03:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax Enable thread-local coverage marks 2021-03-15 16:02:50 +02:00
test_utils Use upstream cov-mark 2021-03-08 22:19:44 +02:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt add expand log 2021-03-13 20:14:21 +08:00
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00