summaryrefslogtreecommitdiff
path: root/cli/lsp/config.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-10-28 14:48:14 -0400
committerGitHub <noreply@github.com>2022-10-28 14:48:14 -0400
commit7c80f15020ba9c133fb17d908d8f3aeea4da71d2 (patch)
tree351c247d0726cb0ddd0edf08181e5292c75ea658 /cli/lsp/config.rs
parentd1d42e6ba7324c97db8b488e41419564f29b475d (diff)
fix(lsp): correct `parameterNames.suppressWhenArgumentMatchesName` and `variableTypes.suppressWhenTypeMatchesName` (#16469)
Closes #16468
Diffstat (limited to 'cli/lsp/config.rs')
-rw-r--r--cli/lsp/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/config.rs b/cli/lsp/config.rs
index 3c44ebe05..04a48435f 100644
--- a/cli/lsp/config.rs
+++ b/cli/lsp/config.rs
@@ -168,14 +168,14 @@ pub struct InlayHintsVarTypesOptions {
#[serde(default)]
pub enabled: bool,
#[serde(default = "is_true")]
- pub suppress_when_argument_matches_name: bool,
+ pub suppress_when_type_matches_name: bool,
}
impl Default for InlayHintsVarTypesOptions {
fn default() -> Self {
Self {
enabled: false,
- suppress_when_argument_matches_name: true,
+ suppress_when_type_matches_name: true,
}
}
}
@@ -685,7 +685,7 @@ mod tests {
parameter_types: InlayHintsParamTypesOptions { enabled: false },
variable_types: InlayHintsVarTypesOptions {
enabled: false,
- suppress_when_argument_matches_name: true
+ suppress_when_type_matches_name: true
},
property_declaration_types: InlayHintsPropDeclTypesOptions {
enabled: false