rust-analyzer/crates/ide-assists/src
bors 26c1638bfb Auto merge of #17308 - mathew-horner:prefer-workspace, r=Veykril
Add preference modifier for workspace-local crates when using auto import.

`@joshka` pointed out some odd behavior of auto import ordering. It doesn't seem that the current heuristics were applying any sort of precedence to imports from the workspace. I've went ahead and added that.

I hope to get some feedback on the modifier numbers here. I just went with something that felt like it balanced giving more power to workspace crates without completely ignoring relative path distance.

closes https://github.com/rust-lang/rust-analyzer/issues/17303
2024-06-07 10:35:49 +00:00
..
handlers Auto merge of #17308 - mathew-horner:prefer-workspace, r=Veykril 2024-06-07 10:35:49 +00:00
tests Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
utils Allow hir::Param to refer to other entity params aside from functions 2024-05-18 12:35:55 +02:00
assist_config.rs Make term search fuel configurable 2024-05-08 19:46:33 +03:00
assist_context.rs Import serde derives on converting json to struct 2022-08-06 20:12:21 +04:30
lib.rs Auto merge of #17258 - maxwase:code-assist-async-sugar, r=Veykril 2024-05-27 16:40:04 +00:00
tests.rs Make term search fuel configurable 2024-05-08 19:46:33 +03:00
utils.rs fix typos & formatting 2024-06-02 14:09:36 -04:00