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.

collab: Add support for reading boolean values from `.env.toml` (#16317)

Marshall Bowers583959f82a5a
diff --git a/crates/collab/src/env.rs b/crates/collab/src/env.rs
index bdbb4819fb4..7335e26d6d3 100644
--- a/crates/collab/src/env.rs
+++ b/crates/collab/src/env.rs
@@ -32,6 +32,7 @@ fn add_vars(env_content: String, vars: &mut Vec<(String, String)>) -> Result<()>
toml::Value::String(value) => value,
toml::Value::Integer(value) => value.to_string(),
toml::Value::Float(value) => value.to_string(),
+ toml::Value::Boolean(value) => value.to_string(),
_ => panic!("unsupported TOML value in .env.toml for key {}", key),
};
vars.push((key, value));