Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Not working yet file-finder2 (#3321)

Mikayla Makidf64a3c7010c
diff --cc crates/gpui2/src/app/test_context.rs
index 9a1e4ecd549,50447b29462..cc59b7a16a5
--- a/crates/gpui2/src/app/test_context.rs
+++ b/crates/gpui2/src/app/test_context.rs
@@@ -78,11 -77,15 +78,12 @@@ impl TestAppContext
let arc_dispatcher = Arc::new(dispatcher.clone());
let background_executor = BackgroundExecutor::new(arc_dispatcher.clone());
let foreground_executor = ForegroundExecutor::new(arc_dispatcher);
- let platform = Rc::new(TestPlatform::new(
- background_executor.clone(),
- foreground_executor.clone(),
- ));
+ let platform = TestPlatform::new(background_executor.clone(), foreground_executor.clone());
let asset_source = Arc::new(());
let http_client = util::http::FakeHttpClient::with_404_response();
+
Self {
- app: AppContext::new(platform, asset_source, http_client),
+ app: AppContext::new(platform.clone(), asset_source, http_client),
background_executor,
foreground_executor,
dispatcher: dispatcher.clone(),
diff --cc crates/workspace2/src/workspace2.rs
index 272ffcf3cde,0101b60f880..3770a6ffc69
--- a/crates/workspace2/src/workspace2.rs
+++ b/crates/workspace2/src/workspace2.rs
@@@ -67,10 -67,9 +67,10 @@@ use std::
sync::{atomic::AtomicUsize, Arc},
time::Duration,
};
- use theme2::ActiveTheme;
+ use theme2::{ActiveTheme, ThemeSettings};
pub use toolbar::{ToolbarItemLocation, ToolbarItemView};
-use ui::{h_stack, Button, ButtonVariant, KeyBinding, Label, TextColor, TextTooltip};
+use ui::TextColor;
+use ui::{h_stack, Button, ButtonVariant, KeyBinding, Label, TextTooltip};
use util::ResultExt;
use uuid::Uuid;
pub use workspace_settings::{AutosaveSetting, WorkspaceSettings};