rust-analyzer/crates/ide-assists
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
..
src Auto merge of #17308 - mathew-horner:prefer-workspace, r=Veykril 2024-06-07 10:35:49 +00:00
Cargo.toml Move diagnostics docs generation into xtask/codegen 2024-03-04 17:14:14 +01:00