Rename Handle to Model
This commit is contained in:
parent
14d24a9ac6
commit
1a54ac0d69
32 changed files with 11195 additions and 482 deletions
|
@ -120,7 +120,7 @@ fn main() {
|
|||
let node_runtime = RealNodeRuntime::new(http.clone());
|
||||
|
||||
language2::init(cx);
|
||||
let user_store = cx.entity(|cx| UserStore::new(client.clone(), http.clone(), cx));
|
||||
let user_store = cx.build_model(|cx| UserStore::new(client.clone(), http.clone(), cx));
|
||||
// let workspace_store = cx.add_model(|cx| WorkspaceStore::new(client.clone(), cx));
|
||||
|
||||
cx.set_global(client.clone());
|
||||
|
|
|
@ -4,7 +4,7 @@ mod open_listener;
|
|||
|
||||
pub use assets::*;
|
||||
use client2::{Client, UserStore};
|
||||
use gpui2::{AsyncAppContext, Handle};
|
||||
use gpui2::{AsyncAppContext, Model};
|
||||
pub use only_instance::*;
|
||||
pub use open_listener::*;
|
||||
|
||||
|
@ -47,7 +47,7 @@ pub fn connect_to_cli(
|
|||
|
||||
pub struct AppState {
|
||||
pub client: Arc<Client>,
|
||||
pub user_store: Handle<UserStore>,
|
||||
pub user_store: Model<UserStore>,
|
||||
}
|
||||
|
||||
pub async fn handle_cli_connection(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue