Remove more references to 'model' in GPUI APIs (#23693)
Release Notes: - N/A
This commit is contained in:
parent
a6b1514246
commit
9cae96f82f
115 changed files with 309 additions and 311 deletions
|
@ -869,7 +869,7 @@ impl Project {
|
|||
};
|
||||
|
||||
let ssh = ssh.read(cx);
|
||||
ssh.subscribe_to_entity(SSH_PROJECT_ID, &cx.model());
|
||||
ssh.subscribe_to_entity(SSH_PROJECT_ID, &cx.entity());
|
||||
ssh.subscribe_to_entity(SSH_PROJECT_ID, &this.buffer_store);
|
||||
ssh.subscribe_to_entity(SSH_PROJECT_ID, &this.worktree_store);
|
||||
ssh.subscribe_to_entity(SSH_PROJECT_ID, &this.lsp_store);
|
||||
|
@ -1585,7 +1585,7 @@ impl Project {
|
|||
self.client_subscriptions.extend([
|
||||
self.client
|
||||
.subscribe_to_entity(project_id)?
|
||||
.set_model(&cx.model(), &mut cx.to_async()),
|
||||
.set_model(&cx.entity(), &mut cx.to_async()),
|
||||
self.client
|
||||
.subscribe_to_entity(project_id)?
|
||||
.set_model(&self.worktree_store, &mut cx.to_async()),
|
||||
|
@ -2427,7 +2427,7 @@ impl Project {
|
|||
delay
|
||||
} else {
|
||||
if first_insertion {
|
||||
let this = cx.weak_model();
|
||||
let this = cx.weak_entity();
|
||||
cx.defer(move |cx| {
|
||||
if let Some(this) = this.upgrade() {
|
||||
this.update(cx, |this, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue