From 4c95c6e25d7765798fc527f11beb6c039c6adabe Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 25 Nov 2020 00:02:45 +0200 Subject: Gate autoimports begind experimental completions flag --- crates/completion/src/completions/unqualified_path.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/completion/src/completions/unqualified_path.rs') diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs index 86c143b63..4f1c9faa0 100644 --- a/crates/completion/src/completions/unqualified_path.rs +++ b/crates/completion/src/completions/unqualified_path.rs @@ -44,7 +44,9 @@ pub(crate) fn complete_unqualified_path(acc: &mut Completions, ctx: &CompletionC acc.add_resolution(ctx, name.to_string(), &res) }); - fuzzy_completion(acc, ctx).unwrap_or_default() + if ctx.config.enable_experimental_completions { + fuzzy_completion(acc, ctx).unwrap_or_default() + } } fn complete_enum_variants(acc: &mut Completions, ctx: &CompletionContext, ty: &Type) { -- cgit v1.2.3