diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index 1bfb8a917a8..8bc7dc7938f 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 599e9c5a7bf..ead4c50f6e2 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,