@@ -11,8 +11,9 @@ use std::{ffi::OsString, fmt, iter, path::PathBuf};
1111
1212use flycheck:: FlycheckConfig ;
1313use ide:: {
14- AssistConfig , CompletionConfig , DiagnosticsConfig , ExprFillDefaultMode , HighlightRelatedConfig ,
15- HoverConfig , HoverDocFormat , InlayHintsConfig , JoinLinesConfig , Snippet , SnippetScope ,
14+ AssistConfig , CallableSnippets , CompletionConfig , DiagnosticsConfig , ExprFillDefaultMode ,
15+ HighlightRelatedConfig , HoverConfig , HoverDocFormat , InlayHintsConfig , JoinLinesConfig ,
16+ Snippet , SnippetScope ,
1617} ;
1718use ide_db:: {
1819 imports:: insert_use:: { ImportGranularity , InsertUseConfig , PrefixKind } ,
@@ -1029,14 +1030,10 @@ impl Config {
10291030 && completion_item_edit_resolve ( & self . caps ) ,
10301031 enable_self_on_the_fly : self . data . completion_autoself_enable ,
10311032 enable_private_editable : self . data . completion_privateEditable_enable ,
1032- add_call_parenthesis : matches ! (
1033- self . data. completion_callable_snippets,
1034- Some ( CallableCompletionDef :: AddParentheses )
1035- ) ,
1036- add_call_argument_snippets : matches ! (
1037- self . data. completion_callable_snippets,
1038- Some ( CallableCompletionDef :: FillArguments )
1039- ) ,
1033+ callable : self . data . completion_callable_snippets . map ( |it| match it {
1034+ CallableCompletionDef :: FillArguments => CallableSnippets :: FillArguments ,
1035+ CallableCompletionDef :: AddParentheses => CallableSnippets :: AddParentheses ,
1036+ } ) ,
10401037 insert_use : self . insert_use_config ( ) ,
10411038 snippet_cap : SnippetCap :: new ( try_or_def ! (
10421039 self . caps
@@ -1383,7 +1380,7 @@ enum ImportGranularityDef {
13831380 Module ,
13841381}
13851382
1386- #[ derive( Deserialize , Debug , Clone ) ]
1383+ #[ derive( Deserialize , Debug , Copy , Clone ) ]
13871384#[ serde( rename_all = "snake_case" ) ]
13881385enum CallableCompletionDef {
13891386 FillArguments ,
0 commit comments