Reintroduce LSP diagnostic/status message (#3728)

Release Notes:

- N/A
This commit is contained in:
Julia
2023-12-20 12:23:36 -05:00
committed by GitHub
4 changed files with 68 additions and 29 deletions
+17
View File
@@ -789,6 +789,7 @@ impl Pane {
}
self.update_toolbar(cx);
self.update_status_bar(cx);
if focus_item {
self.focus_active_item(cx);
@@ -1450,6 +1451,22 @@ impl Pane {
});
}
fn update_status_bar(&mut self, cx: &mut ViewContext<Self>) {
let workspace = self.workspace.clone();
let pane = cx.view().clone();
cx.window_context().defer(move |cx| {
let Ok(status_bar) = workspace.update(cx, |workspace, _| workspace.status_bar.clone())
else {
return;
};
status_bar.update(cx, move |status_bar, cx| {
status_bar.set_active_pane(&pane, cx);
});
});
}
fn render_tab(
&self,
ix: usize,