diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-23 22:48:45 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-23 22:48:45 +0100 |
commit | e833e037834102c829dadeff0069b9219efc047b (patch) | |
tree | 9f264b1ddd2811da0a3a0a6fec595b7b50f94284 /crates/ra_syntax/test_data/parser/err/0025_nope.rs | |
parent | 01f1f10feccb3f4bc25d5c39b60c0d4a59e17b52 (diff) | |
parent | da6b136ea5b0e37d3dae9b78f3dbff2f18a9e5ea (diff) |
Merge #3954
3954: Improve autocompletion by looking on the type and name r=matklad a=bnjjj
This tweet (https://twitter.com/tjholowaychuk/status/1248918374731714560) gaves me the idea to implement that in rust-analyzer.
Basically for this first example I made some examples when we are in a function call definition. I look on the parameter list to prioritize autocompletions for the same types and if it's the same type + the same name then it's displayed first in the completion list.
So here is a draft, first step to open a discussion and know what you think about the implementation. It works (cf tests) but maybe I can make a better implementation at some places. Be careful the code needs some refactoring to be better and concise.
PS: It was lot of fun writing this haha
Co-authored-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0025_nope.rs')
0 files changed, 0 insertions, 0 deletions