Skip to content

Commit 6b487ed

Browse files
committed
fix & run tests
1 parent 6afa5b0 commit 6b487ed

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

crates/ide-completion/src/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pub(crate) const TEST_CONFIG: CompletionConfig = CompletionConfig {
6464
enable_imports_on_the_fly: true,
6565
enable_self_on_the_fly: true,
6666
enable_private_editable: false,
67+
full_function_signatures: false,
6768
callable: Some(CallableSnippets::FillArguments),
6869
snippet_cap: SnippetCap::new(true),
6970
prefer_no_std: false,

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ config_data! {
209209
completion_autoself_enable: bool = "true",
210210
/// Whether to add parenthesis and argument snippets when completing function.
211211
completion_callable_snippets: CallableCompletionDef = "\"fill_arguments\"",
212+
/// Whether to show full function/method signatures in completion docs.
213+
completion_fullFunctionSignatures_enable: bool = "false",
212214
/// Maximum number of completions to return. If `None`, the limit is infinite.
213215
completion_limit: Option<usize> = "null",
214216
/// Whether to show postfix snippets like `dbg`, `if`, `not`, etc.
215217
completion_postfix_enable: bool = "true",
216218
/// Enables completions of private items and fields that are defined in the current workspace even if they are not visible at the current position.
217219
completion_privateEditable_enable: bool = "false",
218-
/// Whether to show full function/method signatures in completion docs.
219-
completion_fullFunctionSignatures_enable: bool = "false",
220220
/// Custom completion snippets.
221221
// NOTE: Keep this list in sync with the feature docs of user snippets.
222222
completion_snippets_custom: FxHashMap<String, SnippetDef> = r#"{

crates/rust-analyzer/src/integrated_benchmarks.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ fn integrated_completion_benchmark() {
134134
enable_imports_on_the_fly: true,
135135
enable_self_on_the_fly: true,
136136
enable_private_editable: true,
137+
full_function_signatures: false,
137138
callable: Some(CallableSnippets::FillArguments),
138139
snippet_cap: SnippetCap::new(true),
139140
insert_use: InsertUseConfig {
@@ -173,6 +174,7 @@ fn integrated_completion_benchmark() {
173174
enable_imports_on_the_fly: true,
174175
enable_self_on_the_fly: true,
175176
enable_private_editable: true,
177+
full_function_signatures: false,
176178
callable: Some(CallableSnippets::FillArguments),
177179
snippet_cap: SnippetCap::new(true),
178180
insert_use: InsertUseConfig {

docs/user/generated_config.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ with `self` prefixed to them when inside a method.
244244
--
245245
Whether to add parenthesis and argument snippets when completing function.
246246
--
247+
[[rust-analyzer.completion.fullFunctionSignatures.enable]]rust-analyzer.completion.fullFunctionSignatures.enable (default: `false`)::
248+
+
249+
--
250+
Whether to show full function/method signatures in completion docs.
251+
--
247252
[[rust-analyzer.completion.limit]]rust-analyzer.completion.limit (default: `null`)::
248253
+
249254
--

editors/code/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,11 @@
799799
"Do no snippet completions for callables."
800800
]
801801
},
802+
"rust-analyzer.completion.fullFunctionSignatures.enable": {
803+
"markdownDescription": "Whether to show full function/method signatures in completion docs.",
804+
"default": false,
805+
"type": "boolean"
806+
},
802807
"rust-analyzer.completion.limit": {
803808
"markdownDescription": "Maximum number of completions to return. If `None`, the limit is infinite.",
804809
"default": null,

0 commit comments

Comments
 (0)