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

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2025-01-27 04:00:27 +00:00
committed by GitHub
parent a6b1514246
commit 9cae96f82f
115 changed files with 309 additions and 311 deletions
+1 -1
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
+2 -2
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;