Unnamed repository; edit this file 'description' to name the repository.
Update VS Code settings
Maria José Solano 2023-01-20
parent f7fcdb6 · commit 2ea703c
-rw-r--r--docs/user/generated_config.adoc5
-rw-r--r--editors/code/package.json9
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index 1bfb8a917a..8bc7dc7938 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -219,6 +219,11 @@ with `self` prefixed to them when inside a method.
--
Whether to add parenthesis and argument snippets when completing function.
--
+[[rust-analyzer.completion.limit]]rust-analyzer.completion.limit (default: `null`)::
++
+--
+Maximum number of completions to return. If `None`, the limit is infinite.
+--
[[rust-analyzer.completion.postfix.enable]]rust-analyzer.completion.postfix.enable (default: `true`)::
+
--
diff --git a/editors/code/package.json b/editors/code/package.json
index 599e9c5a7b..ead4c50f6e 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -697,6 +697,15 @@
"Do no snippet completions for callables."
]
},
+ "rust-analyzer.completion.limit": {
+ "markdownDescription": "Maximum number of completions to return. If `None`, the limit is infinite.",
+ "default": null,
+ "type": [
+ "null",
+ "integer"
+ ],
+ "minimum": 0
+ },
"rust-analyzer.completion.postfix.enable": {
"markdownDescription": "Whether to show postfix snippets like `dbg`, `if`, `not`, etc.",
"default": true,