mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 17:07:26 +00:00
Properly fill the completion settings
This commit is contained in:
parent
1de7848b57
commit
d776c67226
1 changed files with 5 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue