Send extension counts when metadata changes
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
d1cdacdf14
commit
7bae759a02
4 changed files with 48 additions and 47 deletions
|
@ -592,7 +592,7 @@ impl AsyncAppContext {
|
|||
self.0.borrow().foreground.spawn(f(self.clone()))
|
||||
}
|
||||
|
||||
pub fn read<T, F: FnOnce(&AppContext) -> T>(&mut self, callback: F) -> T {
|
||||
pub fn read<T, F: FnOnce(&AppContext) -> T>(&self, callback: F) -> T {
|
||||
callback(self.0.borrow().as_ref())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue