Skip to content

Commit 1e65673

Browse files
committed
zed fix
1 parent d9f4d4e commit 1e65673

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

engine/zed/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ impl zed::Extension for BamlExtension {
141141
) -> Result<zed::Command> {
142142
let baml_binary = self.language_server_binary(language_server_id, worktree)?;
143143
Ok(zed::Command {
144-
// command: baml_binary.path,
144+
#[cfg(feature = "debug")]
145145
command: format!(
146146
"{}/../target/debug/language-server-hot-reload",
147147
env!("CARGO_MANIFEST_DIR")
148148
),
149+
#[cfg(not(feature = "debug"))]
150+
command: baml_binary.path,
149151
args: baml_binary.args.unwrap_or_else(|| vec!["lsp".into()]),
150152
env: vec![("VSCODE_DEBUG_MODE".to_string(), "true".to_string())],
151153
})

0 commit comments

Comments
 (0)