From d776c67226fe12e75fc526966cba06358c2b8113 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 14 Nov 2020 23:17:08 +0200 Subject: [PATCH] Properly fill the completion settings --- crates/rust-analyzer/src/config.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index d167965900..5fc6800cf2 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -294,10 +294,6 @@ impl Config { max_length: data.inlayHints_maxLength, }; - self.completion.enable_postfix_completions = data.completion_postfix_enable; - self.completion.add_call_parenthesis = data.completion_addCallParenthesis; - self.completion.add_call_argument_snippets = data.completion_addCallArgumentSnippets; - self.assist.insert_use.merge = match data.assist_importMergeBehaviour { MergeBehaviourDef::None => None, MergeBehaviourDef::Full => Some(MergeBehaviour::Full), @@ -309,6 +305,11 @@ impl Config { ImportPrefixDef::BySelf => PrefixKind::BySelf, }; + self.completion.enable_postfix_completions = data.completion_postfix_enable; + self.completion.add_call_parenthesis = data.completion_addCallParenthesis; + self.completion.add_call_argument_snippets = data.completion_addCallArgumentSnippets; + self.completion.merge = self.assist.insert_use.merge; + self.call_info_full = data.callInfo_full; self.lens = LensConfig {