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
@@ -133,7 +133,7 @@ impl EditorLspTestContext {
let window = cx.add_window(|window, cx| Workspace::test_new(project.clone(), window, cx));
let workspace = window.root_model(cx).unwrap();
let workspace = window.root(cx).unwrap();
let mut cx = VisualTestContext::from_window(*window.deref(), cx);
project
@@ -67,7 +67,7 @@ impl EditorTestContext {
window.focus(&editor.focus_handle(cx));
editor
});
let editor_view = editor.root_model(cx).unwrap();
let editor_view = editor.root(cx).unwrap();
cx.run_until_parked();
Self {
@@ -89,7 +89,7 @@ impl EditorTestContext {
}
pub async fn for_editor(editor: WindowHandle<Editor>, cx: &mut gpui::TestAppContext) -> Self {
let editor_view = editor.root_model(cx).unwrap();
let editor_view = editor.root(cx).unwrap();
Self {
cx: VisualTestContext::from_window(*editor.deref(), cx),
window: editor.into(),
@@ -126,7 +126,7 @@ impl EditorTestContext {
editor
});
let editor_view = editor.root_model(cx).unwrap();
let editor_view = editor.root(cx).unwrap();
Self {
cx: VisualTestContext::from_window(*editor.deref(), cx),
window: editor.into(),