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

@ -218,7 +218,7 @@ impl TerminalView {
}
}
pub fn model(&self) -> &Entity<Terminal> {
pub fn entity(&self) -> &Entity<Terminal> {
&self.terminal
}
@ -1125,7 +1125,7 @@ impl TerminalView {
impl Render for TerminalView {
fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
let terminal_handle = self.terminal.clone();
let terminal_view_handle = cx.model().clone();
let terminal_view_handle = cx.entity().clone();
let focused = self.focus_handle.is_focused(window);
@ -1771,7 +1771,7 @@ mod tests {
let project = Project::test(params.fs.clone(), [], cx).await;
let workspace = cx
.add_window(|window, cx| Workspace::test_new(project.clone(), window, cx))
.root_model(cx)
.root(cx)
.unwrap();
(project, workspace)