mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Merge #9993
9993: feat: join lines merges assignments r=matklad a=unexge Closes https://github.com/rust-analyzer/rust-analyzer/issues/9967.  Co-authored-by: unexge <unexge@gmail.com>
This commit is contained in:
commit
49c02b93b3
4 changed files with 106 additions and 0 deletions
|
@ -206,6 +206,8 @@ config_data! {
|
|||
joinLines_removeTrailingComma: bool = "true",
|
||||
/// Join lines unwraps trivial blocks.
|
||||
joinLines_unwrapTrivialBlock: bool = "true",
|
||||
/// Join lines merges consecutive declaration and initialization of an assignment.
|
||||
joinLines_joinAssignments: bool = "true",
|
||||
|
||||
/// Whether to show `Debug` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
|
@ -786,6 +788,7 @@ impl Config {
|
|||
join_else_if: self.data.joinLines_joinElseIf,
|
||||
remove_trailing_comma: self.data.joinLines_removeTrailingComma,
|
||||
unwrap_trivial_blocks: self.data.joinLines_unwrapTrivialBlock,
|
||||
join_assignments: self.data.joinLines_joinAssignments,
|
||||
}
|
||||
}
|
||||
pub fn call_info_full(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue