diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index de69a93ba6..88655c7fdc 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -3906,7 +3906,7 @@ impl Project { source: diagnostic.source.clone(), code: code.clone(), severity: diagnostic.severity.unwrap_or(DiagnosticSeverity::ERROR), - message: diagnostic.message.clone(), + message: diagnostic.message.trim().to_string(), group_id, is_primary: true, is_disk_based, @@ -3923,7 +3923,7 @@ impl Project { source: diagnostic.source.clone(), code: code.clone(), severity: DiagnosticSeverity::INFORMATION, - message: info.message.clone(), + message: info.message.trim().to_string(), group_id, is_primary: false, is_disk_based,