In the status bar, show the diagnostic under the cursor
This commit is contained in:
parent
941d935c4a
commit
8b5089c759
5 changed files with 95 additions and 3 deletions
|
@ -350,8 +350,10 @@ impl Workspace {
|
|||
cx.focus(&pane);
|
||||
|
||||
let cursor_position = cx.add_view(|_| items::CursorPosition::new(params.settings.clone()));
|
||||
let diagnostic = cx.add_view(|_| items::DiagnosticMessage::new(params.settings.clone()));
|
||||
let status_bar = cx.add_view(|cx| {
|
||||
let mut status_bar = StatusBar::new(&pane, params.settings.clone(), cx);
|
||||
status_bar.add_left_item(diagnostic, cx);
|
||||
status_bar.add_right_item(cursor_position, cx);
|
||||
status_bar
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue