Skip to content

Commit d776c67

Browse files
Properly fill the completion settings
1 parent 1de7848 commit d776c67

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,6 @@ impl Config {
294294
max_length: data.inlayHints_maxLength,
295295
};
296296

297-
self.completion.enable_postfix_completions = data.completion_postfix_enable;
298-
self.completion.add_call_parenthesis = data.completion_addCallParenthesis;
299-
self.completion.add_call_argument_snippets = data.completion_addCallArgumentSnippets;
300-
301297
self.assist.insert_use.merge = match data.assist_importMergeBehaviour {
302298
MergeBehaviourDef::None => None,
303299
MergeBehaviourDef::Full => Some(MergeBehaviour::Full),
@@ -309,6 +305,11 @@ impl Config {
309305
ImportPrefixDef::BySelf => PrefixKind::BySelf,
310306
};
311307

308+
self.completion.enable_postfix_completions = data.completion_postfix_enable;
309+
self.completion.add_call_parenthesis = data.completion_addCallParenthesis;
310+
self.completion.add_call_argument_snippets = data.completion_addCallArgumentSnippets;
311+
self.completion.merge = self.assist.insert_use.merge;
312+
312313
self.call_info_full = data.callInfo_full;
313314

314315
self.lens = LensConfig {

0 commit comments

Comments
 (0)