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.

Fix compile errors on Linux (#7527)

Antar219ec91748cd
diff --git a/crates/gpui/src/platform/linux/platform.rs b/crates/gpui/src/platform/linux/platform.rs
index 30d2b66bf01..9e0c670be50 100644
--- a/crates/gpui/src/platform/linux/platform.rs
+++ b/crates/gpui/src/platform/linux/platform.rs
@@ -345,7 +345,9 @@ impl Platform for LinuxPlatform {
fn set_cursor_style(&self, style: CursorStyle) {}
//todo!(linux)
- fn should_auto_hide_scrollbars(&self) -> bool {}
+ fn should_auto_hide_scrollbars(&self) -> bool {
+ unimplemented!()
+ }
//todo!(linux)
fn write_to_clipboard(&self, item: ClipboardItem) {}
@@ -366,6 +368,10 @@ impl Platform for LinuxPlatform {
fn delete_credentials(&self, url: &str) -> Task<Result<()>> {
unimplemented!()
}
+
+ fn window_appearance(&self) -> crate::WindowAppearance {
+ unimplemented!()
+ }
}
#[cfg(test)]
diff --git a/crates/gpui/src/platform/linux/window.rs b/crates/gpui/src/platform/linux/window.rs
index 9ad02039e8a..972000b5d56 100644
--- a/crates/gpui/src/platform/linux/window.rs
+++ b/crates/gpui/src/platform/linux/window.rs
@@ -410,9 +410,6 @@ impl PlatformWindow for LinuxWindow {
unimplemented!()
}
- //todo!(linux)
- fn invalidate(&self) {}
-
fn draw(&self, scene: &crate::Scene) {
let mut inner = self.0.inner.lock();
inner.renderer.draw(scene);