Move debug_elements to AnyWindowHandle

This commit is contained in:
Nathan Sobo 2023-08-08 11:27:19 -06:00
parent 4f10f0ee86
commit 95cd96e4be
2 changed files with 9 additions and 9 deletions

View file

@ -182,7 +182,7 @@ pub fn init(app_state: &Arc<AppState>, cx: &mut gpui::AppContext) {
let window = cx.window();
cx.spawn(|workspace, mut cx| async move {
let markdown = markdown.await.log_err();
let content = to_string_pretty(&cx.debug_elements(window).ok_or_else(|| {
let content = to_string_pretty(&window.debug_elements(&cx).ok_or_else(|| {
anyhow!("could not debug elements for window {}", window.id())
})?)
.unwrap();