diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 62fa1506b45f629f41f18191f70ddb126d7c2f0f..44e1b4be715e38cdb2adcaac1bb0feb285f64493 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -6334,7 +6334,7 @@ impl Editor { self.completion_tasks.push((id, task)); } - #[cfg(feature = "test-support")] + #[cfg(any(test, feature = "test-support"))] pub fn current_completions(&self) -> Option> { let menu = self.context_menu.borrow(); if let CodeContextMenu::Completions(menu) = menu.as_ref()? { @@ -23573,7 +23573,7 @@ impl Editor { .insert(TypeId::of::(), (color_fetcher, gutter_highlights)); } - #[cfg(feature = "test-support")] + #[cfg(any(test, feature = "test-support"))] pub fn all_text_highlights( &self, window: &mut Window, @@ -23597,7 +23597,7 @@ impl Editor { }) } - #[cfg(feature = "test-support")] + #[cfg(any(test, feature = "test-support"))] pub fn all_text_background_highlights( &self, window: &mut Window, @@ -23627,7 +23627,7 @@ impl Editor { res } - #[cfg(feature = "test-support")] + #[cfg(any(test, feature = "test-support"))] pub fn search_background_highlights(&mut self, cx: &mut Context) -> Vec> { let snapshot = self.buffer().read(cx).snapshot(cx); diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index ddb7373c2ed143b52775d187a52ee2d449ef25b2..cce229a7d3c51d8cff7e6ee4f8880cc8e8d8f73c 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -31,7 +31,9 @@ leak-detection = ["backtrace"] wayland = [ "bitflags", ] -x11 = [] +x11 = [ + "scap?/x11", +] screen-capture = [ "scap", ]