Skip to content

Commit a826eaf

Browse files
committed
Use Zed's Node path
1 parent 81907e4 commit a826eaf

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/postgres_model_context.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ impl zed::Extension for PostgresModelContextExtension {
3737
serde_json::from_value(settings).map_err(|e| e.to_string())?;
3838

3939
Ok(Command {
40-
command: "node".to_string(),
41-
args: vec![
42-
env::current_dir()
43-
.unwrap()
44-
.join(SERVER_PATH)
45-
.to_string_lossy()
46-
.to_string(),
47-
],
48-
env: vec![
49-
("DATABASE_URL".into(), settings.database_url)
50-
],
40+
command: zed::node_binary_path()?,
41+
args: vec![env::current_dir()
42+
.unwrap()
43+
.join(SERVER_PATH)
44+
.to_string_lossy()
45+
.to_string()],
46+
env: vec![("DATABASE_URL".into(), settings.database_url)],
5147
})
5248
}
5349
}

0 commit comments

Comments
 (0)