diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-02 21:12:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-02 21:12:10 +0100 |
commit | c2157f5f964c190fefc4e2763f7e57d4940d63c8 (patch) | |
tree | 55c1b3eca3f52b044e946c3182180220a6b484ad | |
parent | e5c86ee3ebec8886a1ac472064208a92c64c4c93 (diff) | |
parent | d304352407c3d3fe04aeedb9f834ba454b17f38c (diff) |
Merge #9118
9118: Document that `addCallArgumentSnippets` requires `addCallParenthesis r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 1 | ||||
-rw-r--r-- | docs/user/generated_config.adoc | 1 | ||||
-rw-r--r-- | editors/code/package.json | 2 |
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 | -- |
121 | Whether to add argument snippets when completing functions. | 121 | Whether to add argument snippets when completing functions. |
122 | Only 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 | }, |