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.

WIP

Mikayla2b883bf32e85
diff --git a/crates/gpui2/src/app.rs b/crates/gpui2/src/app.rs
index 9ec76a86d4e..bec18601f18 100644
--- a/crates/gpui2/src/app.rs
+++ b/crates/gpui2/src/app.rs
@@ -46,13 +46,17 @@ pub struct AppCell {
}
impl AppCell {
+ #[track_caller]
pub fn borrow(&self) -> AppRef {
+ let thread_id = std::thread::current().id();
+ eprintln!("borrowed {thread_id:?}");
AppRef(self.app.borrow())
}
+ #[track_caller]
pub fn borrow_mut(&self) -> AppRefMut {
- // let thread_id = std::thread::current().id();
- // dbg!("borrowed {thread_id:?}");
+ let thread_id = std::thread::current().id();
+ eprintln!("borrowed {thread_id:?}");
AppRefMut(self.app.borrow_mut())
}
}