From d304352407c3d3fe04aeedb9f834ba454b17f38c Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 2 Jun 2021 22:10:09 +0200 Subject: Document that `addCallArgumentSnippets` requires `addCallParenthesis --- crates/rust-analyzer/src/config.rs | 1 + docs/user/generated_config.adoc | 1 + editors/code/package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index ae78fd4f6..c33cdb740 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -92,6 +92,7 @@ config_data! { checkOnSave_overrideCommand: Option> = "null", /// Whether to add argument snippets when completing functions. + /// Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set. completion_addCallArgumentSnippets: bool = "true", /// Whether to add parenthesis when completing functions. completion_addCallParenthesis: bool = "true", diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index dbd9a3503..7f405b4d7 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -119,6 +119,7 @@ similar option. + -- Whether to add argument snippets when completing functions. +Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set. -- [[rust-analyzer.completion.addCallParenthesis]]rust-analyzer.completion.addCallParenthesis (default: `true`):: + diff --git a/editors/code/package.json b/editors/code/package.json index 42a06e137..4a5070d02 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -553,7 +553,7 @@ } }, "rust-analyzer.completion.addCallArgumentSnippets": { - "markdownDescription": "Whether to add argument snippets when completing functions.", + "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.", "default": true, "type": "boolean" }, -- cgit v1.2.3