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.

Merge branch 'main' into migrations-on-server-start

Conrad Irwinbebb528656e0
diff --cc crates/collab/src/lib.rs
index 68fbb4e4d7d,7dbf4513d93..87a423bea90
--- a/crates/collab/src/lib.rs
+++ b/crates/collab/src/lib.rs
@@@ -100,15 -100,9 +100,15 @@@ pub struct Config
pub live_kit_secret: Option<String>,
pub rust_log: Option<String>,
pub log_json: Option<bool>,
- pub zed_environment: String,
+ pub zed_environment: Arc<str>,
}
+impl Config {
+ pub fn is_development(&self) -> bool {
+ self.zed_environment == "development"
+ }
+}
+
#[derive(Default, Deserialize)]
pub struct MigrateConfig {
pub database_url: String,