Document that addCallArgumentSnippets requires `addCallParenthesis

This commit is contained in:
Lukas Wirth 2021-06-02 22:10:09 +02:00
parent 5be653d426
commit d304352407
3 changed files with 3 additions and 1 deletions

View file

@ -92,6 +92,7 @@ config_data! {
checkOnSave_overrideCommand: Option<Vec<String>> = "null", checkOnSave_overrideCommand: Option<Vec<String>> = "null",
/// Whether to add argument snippets when completing functions. /// Whether to add argument snippets when completing functions.
/// Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set.
completion_addCallArgumentSnippets: bool = "true", completion_addCallArgumentSnippets: bool = "true",
/// Whether to add parenthesis when completing functions. /// Whether to add parenthesis when completing functions.
completion_addCallParenthesis: bool = "true", completion_addCallParenthesis: bool = "true",

View file

@ -119,6 +119,7 @@ similar option.
+ +
-- --
Whether to add argument snippets when completing functions. 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`):: [[rust-analyzer.completion.addCallParenthesis]]rust-analyzer.completion.addCallParenthesis (default: `true`)::
+ +

View file

@ -553,7 +553,7 @@
} }
}, },
"rust-analyzer.completion.addCallArgumentSnippets": { "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, "default": true,
"type": "boolean" "type": "boolean"
}, },