From 495d9665c55c88e8c349c2c98967b80e2864ec17 Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Mon, 9 Feb 2026 11:18:24 -0800 Subject: [PATCH] repl: Pluck project off editor directly (#48808) Clean up code by pulling the project off the editor directly. Repeat of https://github.com/zed-industries/zed/pull/48762 since reversion happened in https://github.com/zed-industries/zed/pull/48776. Release Notes: - N/A --- crates/repl/src/repl_sessions_ui.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/repl/src/repl_sessions_ui.rs b/crates/repl/src/repl_sessions_ui.rs index d8bd8869f28ac4a9bdf396073f8948d15aef9e3e..4ad820feeca3eb86080097a56d2d5f368ec32a02 100644 --- a/crates/repl/src/repl_sessions_ui.rs +++ b/crates/repl/src/repl_sessions_ui.rs @@ -78,9 +78,8 @@ pub fn init(cx: &mut App) { return; } - cx.defer_in(window, |editor, window, cx| { - let workspace = Workspace::for_window(window, cx); - let project = workspace.map(|workspace| workspace.read(cx).project().clone()); + cx.defer_in(window, |editor, _window, cx| { + let project = editor.project().cloned(); let is_local_project = project .as_ref()