We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f4d4e commit 1e65673Copy full SHA for 1e65673
engine/zed/src/lib.rs
@@ -141,11 +141,13 @@ impl zed::Extension for BamlExtension {
141
) -> Result<zed::Command> {
142
let baml_binary = self.language_server_binary(language_server_id, worktree)?;
143
Ok(zed::Command {
144
- // command: baml_binary.path,
+ #[cfg(feature = "debug")]
145
command: format!(
146
"{}/../target/debug/language-server-hot-reload",
147
env!("CARGO_MANIFEST_DIR")
148
),
149
+ #[cfg(not(feature = "debug"))]
150
+ command: baml_binary.path,
151
args: baml_binary.args.unwrap_or_else(|| vec!["lsp".into()]),
152
env: vec![("VSCODE_DEBUG_MODE".to_string(), "true".to_string())],
153
})
0 commit comments