Skip to content

Commit

Permalink
fix Fix lsp formmat error in intellij. Change range from u32::Max to …
Browse files Browse the repository at this point in the history
…i32::Max

Signed-off-by: he1pa <[email protected]>
  • Loading branch information
He1pa committed Oct 17, 2024
1 parent a36e4d7 commit 326fd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kclvm/tools/src/LSP/src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub fn format(
Ok(Some(vec![TextEdit {
range: range.unwrap_or(Range::new(
Position::new(0, 0),
Position::new(u32::MAX, u32::MAX),
Position::new(i32::MAX as u32, i32::MAX as u32),
)),
new_text: source,
}]))
Expand Down

0 comments on commit 326fd7a

Please sign in to comment.