WIP
This commit is contained in:
parent
337a79e35f
commit
1c1b53ecf6
5 changed files with 452 additions and 421 deletions
|
@ -7,7 +7,7 @@ pub use assets::*;
|
|||
use collections::HashMap;
|
||||
use gpui2::{
|
||||
point, px, AppContext, AsyncAppContext, AsyncWindowContext, MainThread, Point, Task,
|
||||
TitlebarOptions, WeakView, WindowBounds, WindowKind, WindowOptions,
|
||||
TitlebarOptions, WeakView, WindowBounds, WindowHandle, WindowKind, WindowOptions,
|
||||
};
|
||||
pub use only_instance::*;
|
||||
pub use open_listener::*;
|
||||
|
@ -165,7 +165,7 @@ pub async fn handle_cli_connection(
|
|||
if paths.is_empty() {
|
||||
let (done_tx, done_rx) = oneshot::channel();
|
||||
let _subscription =
|
||||
cx.update_window_root(&workspace, move |_, cx| {
|
||||
workspace.update(&mut cx, move |_, cx| {
|
||||
cx.on_release(|_, _| {
|
||||
let _ = done_tx.send(());
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue