mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:18 +00:00
[ty] Rename functionArgumentNames
to callArgumentNames
inlay hint setting (#19911)
## Summary This PR renames `ty.inlayHints.functionArgumentNames` to `ty.inlayHints.callArgumentNames` which would contain both function calls and class initialization calls i.e., it represents a generic call expression.
This commit is contained in:
parent
2ee47d87b6
commit
1167ed61cf
3 changed files with 14 additions and 14 deletions
|
@ -237,14 +237,14 @@ impl WorkspaceOptions {
|
|||
#[serde(rename_all = "camelCase")]
|
||||
struct InlayHintOptions {
|
||||
variable_types: Option<bool>,
|
||||
function_argument_names: Option<bool>,
|
||||
call_argument_names: Option<bool>,
|
||||
}
|
||||
|
||||
impl InlayHintOptions {
|
||||
fn into_settings(self) -> InlayHintSettings {
|
||||
InlayHintSettings {
|
||||
variable_types: self.variable_types.unwrap_or(true),
|
||||
function_argument_names: self.function_argument_names.unwrap_or(true),
|
||||
call_argument_names: self.call_argument_names.unwrap_or(true),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue