fix & run tests
This commit is contained in:
parent
6afa5b0ba2
commit
6b487ed4be
@ -64,6 +64,7 @@ union Union { field: i32 }
|
||||
enable_imports_on_the_fly: true,
|
||||
enable_self_on_the_fly: true,
|
||||
enable_private_editable: false,
|
||||
full_function_signatures: false,
|
||||
callable: Some(CallableSnippets::FillArguments),
|
||||
snippet_cap: SnippetCap::new(true),
|
||||
prefer_no_std: false,
|
||||
|
@ -209,14 +209,14 @@ struct ConfigData {
|
||||
completion_autoself_enable: bool = "true",
|
||||
/// Whether to add parenthesis and argument snippets when completing function.
|
||||
completion_callable_snippets: CallableCompletionDef = "\"fill_arguments\"",
|
||||
/// Whether to show full function/method signatures in completion docs.
|
||||
completion_fullFunctionSignatures_enable: bool = "false",
|
||||
/// Maximum number of completions to return. If `None`, the limit is infinite.
|
||||
completion_limit: Option<usize> = "null",
|
||||
/// Whether to show postfix snippets like `dbg`, `if`, `not`, etc.
|
||||
completion_postfix_enable: bool = "true",
|
||||
/// Enables completions of private items and fields that are defined in the current workspace even if they are not visible at the current position.
|
||||
completion_privateEditable_enable: bool = "false",
|
||||
/// Whether to show full function/method signatures in completion docs.
|
||||
completion_fullFunctionSignatures_enable: bool = "false",
|
||||
/// Custom completion snippets.
|
||||
// NOTE: Keep this list in sync with the feature docs of user snippets.
|
||||
completion_snippets_custom: FxHashMap<String, SnippetDef> = r#"{
|
||||
|
@ -134,6 +134,7 @@ fn integrated_completion_benchmark() {
|
||||
enable_imports_on_the_fly: true,
|
||||
enable_self_on_the_fly: true,
|
||||
enable_private_editable: true,
|
||||
full_function_signatures: false,
|
||||
callable: Some(CallableSnippets::FillArguments),
|
||||
snippet_cap: SnippetCap::new(true),
|
||||
insert_use: InsertUseConfig {
|
||||
@ -173,6 +174,7 @@ fn integrated_completion_benchmark() {
|
||||
enable_imports_on_the_fly: true,
|
||||
enable_self_on_the_fly: true,
|
||||
enable_private_editable: true,
|
||||
full_function_signatures: false,
|
||||
callable: Some(CallableSnippets::FillArguments),
|
||||
snippet_cap: SnippetCap::new(true),
|
||||
insert_use: InsertUseConfig {
|
||||
|
@ -244,6 +244,11 @@ with `self` prefixed to them when inside a method.
|
||||
--
|
||||
Whether to add parenthesis and argument snippets when completing function.
|
||||
--
|
||||
[[rust-analyzer.completion.fullFunctionSignatures.enable]]rust-analyzer.completion.fullFunctionSignatures.enable (default: `false`)::
|
||||
+
|
||||
--
|
||||
Whether to show full function/method signatures in completion docs.
|
||||
--
|
||||
[[rust-analyzer.completion.limit]]rust-analyzer.completion.limit (default: `null`)::
|
||||
+
|
||||
--
|
||||
|
@ -799,6 +799,11 @@
|
||||
"Do no snippet completions for callables."
|
||||
]
|
||||
},
|
||||
"rust-analyzer.completion.fullFunctionSignatures.enable": {
|
||||
"markdownDescription": "Whether to show full function/method signatures in completion docs.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"rust-analyzer.completion.limit": {
|
||||
"markdownDescription": "Maximum number of completions to return. If `None`, the limit is infinite.",
|
||||
"default": null,
|
||||
|
Loading…
Reference in New Issue
Block a user