Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Render breadcrumbs for diagnostics multi-buffer

Juliac7cc5bca0237
diff --git a/crates/diagnostics/src/diagnostics.rs b/crates/diagnostics/src/diagnostics.rs
index a2793b1fff5..87c0e206782 100644
--- a/crates/diagnostics/src/diagnostics.rs
+++ b/crates/diagnostics/src/diagnostics.rs
@@ -34,7 +34,7 @@ use std::{
use util::TryFutureExt;
use workspace::{
item::{Item, ItemEvent, ItemHandle},
- ItemNavHistory, Pane, Workspace,
+ ItemNavHistory, Pane, ToolbarItemLocation, Workspace,
};
actions!(diagnostics, [Deploy]);
@@ -655,6 +655,14 @@ impl Item for ProjectDiagnosticsEditor {
Some("diagnostics")
}
+ fn breadcrumbs(&self, theme: &theme::Theme, cx: &AppContext) -> Option<Vec<ElementBox>> {
+ self.editor.breadcrumbs(theme, cx)
+ }
+
+ fn breadcrumb_location(&self) -> ToolbarItemLocation {
+ ToolbarItemLocation::PrimaryLeft { flex: None }
+ }
+
fn deserialize(
project: ModelHandle<Project>,
workspace: WeakViewHandle<Workspace>,