You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/rust-analyzer/crates/rust-analyzer/src/config.rs
+6
Original file line number
Diff line number
Diff line change
@@ -453,6 +453,10 @@ config_data! {
453
453
///
454
454
/// In `match` arms it completes a comma instead.
455
455
completion_addSemicolonToUnit:bool = true,
456
+
/// Toggles the additional completions that automatically show method calls and field accesses with `await` prefixed to them when completing on a future.
457
+
completion_autoAwait_enable:bool = true,
458
+
/// Toggles the additional completions that automatically show method calls with `iter()` or `into_iter()` prefixed to them when completing on a type that has them.
459
+
completion_autoIter_enable:bool = true,
456
460
/// Toggles the additional completions that automatically add imports when completed.
457
461
/// Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.
Toggles the additional completions that automatically show method calls with `iter()` or `into_iter()` prefixed to them when completing on a type that has them.
Copy file name to clipboardExpand all lines: src/tools/rust-analyzer/editors/code/package.json
+20
Original file line number
Diff line number
Diff line change
@@ -1143,6 +1143,26 @@
1143
1143
}
1144
1144
}
1145
1145
},
1146
+
{
1147
+
"title": "completion",
1148
+
"properties": {
1149
+
"rust-analyzer.completion.autoAwait.enable": {
1150
+
"markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses with `await` prefixed to them when completing on a future.",
1151
+
"default": true,
1152
+
"type": "boolean"
1153
+
}
1154
+
}
1155
+
},
1156
+
{
1157
+
"title": "completion",
1158
+
"properties": {
1159
+
"rust-analyzer.completion.autoIter.enable": {
1160
+
"markdownDescription": "Toggles the additional completions that automatically show method calls with `iter()` or `into_iter()` prefixed to them when completing on a type that has them.",
0 commit comments