Skip to content

Commit

Permalink
missing newline (#4916)
Browse files Browse the repository at this point in the history
  • Loading branch information
Druue committed Jun 10, 2024
1 parent d116c37 commit 6f3b8db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prisma-fmt/src/code_actions/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn push_missing_block(
newline: NewlineType,
) {
let name: &str = diag.message.split('\"').collect::<Vec<&str>>()[1];
let new_text = format!("\n{block_type} {name} {{{newline}{newline}}}{newline}");
let new_text = format!("{newline}{block_type} {name} {{{newline}{newline}}}{newline}");
let text = TextEdit { range, new_text };

let mut changes = HashMap::new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"character": 2
}
},
"newText": "\ntype Animal {\r\n\r\n}\r\n"
"newText": "\r\ntype Animal {\r\n\r\n}\r\n"
}
]
}
Expand Down Expand Up @@ -71,7 +71,7 @@
"character": 2
}
},
"newText": "\nenum Animal {\r\n\r\n}\r\n"
"newText": "\r\nenum Animal {\r\n\r\n}\r\n"
}
]
}
Expand Down

0 comments on commit 6f3b8db

Please sign in to comment.