Add colors for document highlights

This commit is contained in:
Antonio Scandurra 2023-11-07 13:15:08 +01:00
parent bdf6e8bcc7
commit 268be71d8e
4 changed files with 12 additions and 6 deletions

View file

@ -48,15 +48,15 @@ pub struct AppCell {
impl AppCell {
#[track_caller]
pub fn borrow(&self) -> AppRef {
let thread_id = std::thread::current().id();
eprintln!("borrowed {thread_id:?}");
// 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();
eprintln!("borrowed {thread_id:?}");
// let thread_id = std::thread::current().id();
// eprintln!("borrowed {thread_id:?}");
AppRefMut(self.app.borrow_mut())
}
}