Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid opening a definitions tab if there are no definitions found
Max Brunsfeld9f86748aff13
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 84b97468e0a..f25eefcb7d3 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -5042,7 +5042,7 @@ impl Editor {pane.update(cx, |pane, _| pane.enable_history());});- } else {+ } else if !definitions.is_empty() {let replica_id = editor_handle.read(cx).replica_id(cx);let title = definitions.iter()