mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-04-29 23:14:49 +00:00
One source completion can produce up to two lsp completions. Additionally, `preselct` and `sort_text` are global properties of the whole set of completions, so the right granularity here is to convert many completions. As a side-benefit, we no loger allocate intermediate vec.