mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Improve autoimports on completion speed
* Ignore modules eaferly * Do less completion string rendering
This commit is contained in:
parent
036ea6317c
commit
4baac238a8
4 changed files with 114 additions and 32 deletions
|
@ -150,6 +150,7 @@ impl<'a> Render<'a> {
|
|||
import_data: Option<(ModPath, ImportScope, Option<MergeBehaviour>)>,
|
||||
resolution: &ScopeDef,
|
||||
) -> Option<CompletionItem> {
|
||||
let _p = profile::span("render_resolution");
|
||||
use hir::ModuleDef::*;
|
||||
|
||||
let completion_kind = match resolution {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue