Show diagnostic source in inline diagnostic

This commit is contained in:
Julia 2023-05-02 09:08:07 -04:00
parent f7de0ad8ae
commit 185c1650df
2 changed files with 16 additions and 5 deletions

View file

@ -677,7 +677,7 @@ impl Item for ProjectDiagnosticsEditor {
}
fn diagnostic_header_renderer(diagnostic: Diagnostic) -> RenderBlock {
let (message, highlights) = highlight_diagnostic_message(&diagnostic.message);
let (message, highlights) = highlight_diagnostic_message(Vec::new(), &diagnostic.message);
Arc::new(move |cx| {
let settings = cx.global::<Settings>();
let theme = &settings.theme.editor;