Skip to content

Commit bcdc25a

Browse files
committed
adds newline to lsp diagnostics before code
1 parent c9817d4 commit bcdc25a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lsp/handlers/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn type_errors_to_diagnostics(errors: &[crate::typechecker::error::TypeError], s
149149
severity: Some(DiagnosticSeverity::ERROR),
150150
code: Some(NumberOrString::String(format!("TypeError.{}", err.code()))),
151151
source: Some("pfc".to_string()),
152-
message: format!("{err}"),
152+
message: format!("{}\n", err.format_pretty()),
153153
..Default::default()
154154
}
155155
})

0 commit comments

Comments
 (0)