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.

Merge branch 'main' into search2

Piotr Osiewicz07cc5904f8aa
diff --cc crates/editor2/src/editor.rs
index edbe073b4a1,be621bc5f6a..f8962b3f94f
--- a/crates/editor2/src/editor.rs
+++ b/crates/editor2/src/editor.rs
@@@ -2318,8 -2318,7 +2318,8 @@@ impl Editor
}
self.blink_manager.update(cx, BlinkManager::pause_blinking);
- cx.emit(Event::SelectionsChanged { local });
+ cx.emit(EditorEvent::SelectionsChanged { local });
+ cx.emit(SearchEvent::MatchesInvalidated);
if self.selections.disjoint_anchors().len() == 1 {
cx.emit(SearchEvent::ActiveMatchChanged)
diff --cc crates/ui2/src/components/icon.rs
index 7bc4c7b9831,38b47779259..0114f9afce4
--- a/crates/ui2/src/components/icon.rs
+++ b/crates/ui2/src/components/icon.rs
@@@ -59,15 -66,6 +66,8 @@@ pub enum Icon
SplitMessage,
Terminal,
XCircle,
- Copilot,
- Envelope,
- Bell,
- BellOff,
- BellRing,
- MailOpen,
- AtSign,
+ WholeWord,
+ CaseSensitive,
}
impl Icon {
diff --cc crates/workspace2/src/pane.rs
index 5967208fc2d,d67422c32aa..18298756dbf
--- a/crates/workspace2/src/pane.rs
+++ b/crates/workspace2/src/pane.rs
@@@ -1931,9 -1927,11 +1927,9 @@@ impl Render for Pane
.map(|task| task.detach_and_log_err(cx));
})
.child(self.render_tab_bar(cx))
- // .child(
- // div()
- // ) /* todo!(toolbar) */
+ .child(self.toolbar.clone())
.child(if let Some(item) = self.active_item() {
- div().flex_1().child(item.to_any())
+ div().flex().flex_1().child(item.to_any())
} else {
// todo!()
div().child("Empty Pane")