mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
parent
33b9a6e281
commit
4c3f97d123
@ -723,7 +723,7 @@ impl MutableAppContext {
|
||||
if let Some(arg) = arg.downcast_ref() {
|
||||
handler(arg, cx);
|
||||
} else {
|
||||
log::error!("Could not downcast argument for action {}", name_clone);
|
||||
log::error!("Could not downcast argument for global action {}", name_clone);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -511,7 +511,7 @@ impl Workspace {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn open_new_file(&mut self, _: &AppState, cx: &mut ViewContext<Self>) {
|
||||
pub fn open_new_file(&mut self, _: &Arc<AppState>, cx: &mut ViewContext<Self>) {
|
||||
let buffer = cx.add_model(|cx| Buffer::new(0, "", cx));
|
||||
let buffer_view =
|
||||
cx.add_view(|cx| Editor::for_buffer(buffer.clone(), self.settings.clone(), cx));
|
||||
|
Loading…
Reference in New Issue
Block a user