aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/completions
diff options
context:
space:
mode:
Diffstat (limited to 'crates/completion/src/completions')
-rw-r--r--crates/completion/src/completions/unqualified_path.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs
index 3372fb1a2..544886d29 100644
--- a/crates/completion/src/completions/unqualified_path.rs
+++ b/crates/completion/src/completions/unqualified_path.rs
@@ -145,15 +145,13 @@ fn fuzzy_completion(acc: &mut Completions, ctx: &CompletionContext) -> Option<()
145 }) 145 })
146 .filter(|(mod_path, _)| mod_path.len() > 1) 146 .filter(|(mod_path, _)| mod_path.len() > 1)
147 .filter_map(|(import_path, definition)| { 147 .filter_map(|(import_path, definition)| {
148 render_resolution_with_import( 148 let ie =
149 RenderContext::new(ctx), 149 ImportEdit { import_path: import_path.clone(), import_scope: import_scope.clone() };
150 ImportEdit { 150 {
151 import_path: import_path.clone(), 151 let _p = profile::span("totextedit");
152 import_scope: import_scope.clone(), 152 ie.to_text_edit(ctx.config.merge);
153 merge_behavior: ctx.config.merge, 153 }
154 }, 154 render_resolution_with_import(RenderContext::new(ctx), ie, &definition)
155 &definition,
156 )
157 }); 155 });
158 156
159 acc.add_all(possible_imports); 157 acc.add_all(possible_imports);