From 2ea703c659fa88f14435ddf7529e8d0f7b893d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Jos=C3=A9=20Solano?= Date: Thu, 19 Jan 2023 18:34:19 -0800 Subject: [PATCH] Update VS Code settings --- docs/user/generated_config.adoc | 5 +++++ editors/code/package.json | 9 +++++++++ 2 files changed, 14 insertions(+) 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,