rust-analyzer/crates/ide_completion/src
bors[bot] 21913d0fdb
Merge #7873 #7933
7873: Consider unresolved qualifiers during flyimport r=matklad a=SomeoneToIgnore

Closes https://github.com/rust-analyzer/rust-analyzer/issues/7679

Takes unresolved qualifiers into account, providing better completions (or none, if the path is resolved or do not match).

Does not handle cases when both path qualifier and some trait has to be imported: there are many extra issues with those (such as overlapping imports, for instance) that will require large diffs to address.

Also does not do a fuzzy search on qualifier, that requires some adjustments in `import_map` for better queries and changes to the default replace range which also seems relatively big to include here.

![qualifier_completion](https://user-images.githubusercontent.com/2690773/110040808-0af8dc00-7d4c-11eb-83db-65af94e843bb.gif)


7933: Improve compilation speed r=matklad a=matklad

bors r+
🤖

Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2021-03-09 11:58:48 +00:00
..
completions Merge #7873 #7933 2021-03-09 11:58:48 +00:00
render Use upstream cov-mark 2021-03-08 22:19:44 +02:00
completions.rs rename completion -> ide_completion 2021-02-17 17:53:31 +03:00
config.rs rename completion -> ide_completion 2021-02-17 17:53:31 +03:00
context.rs Use upstream cov-mark 2021-03-08 22:19:44 +02:00
generated_lint_completions.rs Format generated features manually instead of relying on rustfmt 2021-02-27 16:25:06 +02:00
item.rs Rebase leftovers 2021-03-08 23:59:20 +02:00
lib.rs Less lifetines: derive SemanticsScope in place 2021-03-08 23:59:20 +02:00
patterns.rs rename completion -> ide_completion 2021-02-17 17:53:31 +03:00
render.rs Work towards better import labels 2021-03-08 23:59:20 +02:00
test_utils.rs Make group imports configurable 2021-03-07 10:15:17 +02:00