Properly fill the completion settings

This commit is contained in:
Kirill Bulatov 2020-11-14 23:17:08 +02:00
parent 1de7848b57
commit d776c67226

View file

@ -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 {