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.

Fix tests for TestPanel

Conrad Irwinb34c78016fe0
diff --git a/crates/workspace/src/dock.rs b/crates/workspace/src/dock.rs
index 742ff3b6f85..52f768e03f9 100644
--- a/crates/workspace/src/dock.rs
+++ b/crates/workspace/src/dock.rs
@@ -743,8 +743,9 @@ pub mod test {
true
}
- fn set_position(&mut self, position: DockPosition, _: &mut ViewContext<Self>) {
+ fn set_position(&mut self, position: DockPosition, cx: &mut ViewContext<Self>) {
self.position = position;
+ cx.update_global::<SettingsStore, _>(|_, _| {});
}
fn size(&self, _: &WindowContext) -> Pixels {