aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-02 21:10:09 +0100
committerLukas Wirth <[email protected]>2021-06-02 21:10:09 +0100
commitd304352407c3d3fe04aeedb9f834ba454b17f38c (patch)
tree74227d010ee88cb3a8e757dfc02eca36402e66bd
parent5be653d426e3e3fd253f41f85e7d280a82037da9 (diff)
Document that `addCallArgumentSnippets` requires `addCallParenthesis
-rw-r--r--crates/rust-analyzer/src/config.rs1
-rw-r--r--docs/user/generated_config.adoc1
-rw-r--r--editors/code/package.json2
3 files changed, 3 insertions, 1 deletions
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! {
92 checkOnSave_overrideCommand: Option<Vec<String>> = "null", 92 checkOnSave_overrideCommand: Option<Vec<String>> = "null",
93 93
94 /// Whether to add argument snippets when completing functions. 94 /// Whether to add argument snippets when completing functions.
95 /// Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set.
95 completion_addCallArgumentSnippets: bool = "true", 96 completion_addCallArgumentSnippets: bool = "true",
96 /// Whether to add parenthesis when completing functions. 97 /// Whether to add parenthesis when completing functions.
97 completion_addCallParenthesis: bool = "true", 98 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.
119+ 119+
120-- 120--
121Whether to add argument snippets when completing functions. 121Whether to add argument snippets when completing functions.
122Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set.
122-- 123--
123[[rust-analyzer.completion.addCallParenthesis]]rust-analyzer.completion.addCallParenthesis (default: `true`):: 124[[rust-analyzer.completion.addCallParenthesis]]rust-analyzer.completion.addCallParenthesis (default: `true`)::
124+ 125+
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 @@
553 } 553 }
554 }, 554 },
555 "rust-analyzer.completion.addCallArgumentSnippets": { 555 "rust-analyzer.completion.addCallArgumentSnippets": {
556 "markdownDescription": "Whether to add argument snippets when completing functions.", 556 "markdownDescription": "Whether to add argument snippets when completing functions.\nOnly applies when `#rust-analyzer.completion.addCallParenthesis#` is set.",
557 "default": true, 557 "default": true,
558 "type": "boolean" 558 "type": "boolean"
559 }, 559 },