Remove more references to 'model' in GPUI APIs (#23693)

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2025-01-26 20:00:27 -08:00 committed by GitHub
parent a6b1514246
commit 9cae96f82f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
115 changed files with 309 additions and 311 deletions

View file

@ -687,7 +687,7 @@ impl LocalBufferStore {
buffer_id,
);
events.push(BufferStoreEvent::BufferChangedFilePath {
buffer: cx.model(),
buffer: cx.entity(),
old_file: buffer.file().cloned(),
});
}
@ -875,7 +875,7 @@ impl LocalBufferStore {
if !push_to_history {
buffer.forget_transaction(transaction.id);
}
project_transaction.0.insert(cx.model(), transaction);
project_transaction.0.insert(cx.entity(), transaction);
}
})?;
}
@ -1302,7 +1302,7 @@ impl BufferStore {
unstaged_changes: None,
};
let handle = cx.model().downgrade();
let handle = cx.entity().downgrade();
buffer.update(cx, move |_, cx| {
cx.on_release(move |buffer, cx| {
handle