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

@ -130,7 +130,7 @@ impl Replayer {
text,
utf16_range_to_replace,
} => {
let Some(Some(workspace)) = window.root_model::<Workspace>() else {
let Some(Some(workspace)) = window.root::<Workspace>() else {
return;
};
let Some(editor) = workspace

View file

@ -291,7 +291,7 @@ impl Vim {
};
let count = Vim::take_count(cx).unwrap_or(1);
let prior_selections = self.editor_selections(window, cx);
let vim = cx.model().clone();
let vim = cx.entity().clone();
let searched = pane.update(cx, |pane, cx| {
self.search.direction = direction;
@ -425,7 +425,7 @@ impl Vim {
result.notify_err(workspace, cx);
})
}
let vim = cx.model().clone();
let vim = cx.entity().clone();
pane.update(cx, |pane, cx| {
let Some(search_bar) = pane.toolbar().read(cx).item_of_type::<BufferSearchBar>() else {
return;