From eb72156094ce88c85c55e821026686c66bd0736d Mon Sep 17 00:00:00 2001 From: Greg Date: Mon, 11 Nov 2019 22:55:10 -0500 Subject: Implement postfix completions feature flag --- crates/ra_ide_api/src/completion/complete_postfix.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_ide_api/src/completion') diff --git a/crates/ra_ide_api/src/completion/complete_postfix.rs b/crates/ra_ide_api/src/completion/complete_postfix.rs index 4f9565441..a3e9e5f46 100644 --- a/crates/ra_ide_api/src/completion/complete_postfix.rs +++ b/crates/ra_ide_api/src/completion/complete_postfix.rs @@ -13,6 +13,10 @@ use crate::{ }; pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) { + if ctx.db.feature_flags.get("completions.enable-postfix") == false { + return; + } + let dot_receiver = match &ctx.dot_receiver { Some(it) => it, None => return, -- cgit v1.2.3