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.

A set of small fixes (#16849)

Kirill Bulatov55dda0e6afee
diff --git a/.zed/tasks.json b/.zed/tasks.json
index 800588a96ba..b6a9d9f4cd7 100644
--- a/.zed/tasks.json
+++ b/.zed/tasks.json
@@ -2,11 +2,15 @@
{
"label": "clippy",
"command": "./script/clippy",
- "args": []
+ "args": [],
+ "allow_concurrent_runs": true,
+ "use_new_terminal": false
},
{
"label": "cargo run --profile release-fast",
"command": "cargo",
- "args": ["run", "--profile", "release-fast"]
+ "args": ["run", "--profile", "release-fast"],
+ "allow_concurrent_runs": true,
+ "use_new_terminal": false
}
]
diff --git a/Cargo.toml b/Cargo.toml
index 9b18b12ee8b..400e43159ca 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -545,6 +545,7 @@ zed = { codegen-units = 16 }
[profile.release-fast]
inherits = "release"
+debug = "full"
lto = false
codegen-units = 16
diff --git a/crates/assistant/src/slash_command/file_command.rs b/crates/assistant/src/slash_command/file_command.rs
index 244dee21071..c253e5b91c0 100644
--- a/crates/assistant/src/slash_command/file_command.rs
+++ b/crates/assistant/src/slash_command/file_command.rs
@@ -512,10 +512,6 @@ mod custom_path_matcher {
})
}
- pub fn sources(&self) -> &[String] {
- &self.sources
- }
-
pub fn is_match<P: AsRef<Path>>(&self, other: P) -> bool {
let other_path = other.as_ref();
self.sources
diff --git a/crates/gpui/src/platform/blade/blade_renderer.rs b/crates/gpui/src/platform/blade/blade_renderer.rs
index afb065895d6..147966eb387 100644
--- a/crates/gpui/src/platform/blade/blade_renderer.rs
+++ b/crates/gpui/src/platform/blade/blade_renderer.rs
@@ -774,6 +774,7 @@ impl BladeRenderer {
}
/// Required to compile on macOS, but not currently supported.
+ #[cfg_attr(any(target_os = "linux", target_os = "windows"), allow(dead_code))]
pub fn fps(&self) -> f32 {
0.0
}