We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81907e4 commit a826eafCopy full SHA for a826eaf
src/postgres_model_context.rs
@@ -37,17 +37,13 @@ impl zed::Extension for PostgresModelContextExtension {
37
serde_json::from_value(settings).map_err(|e| e.to_string())?;
38
39
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
+ command: zed::node_binary_path()?,
+ args: vec![env::current_dir()
+ .unwrap()
+ .join(SERVER_PATH)
+ .to_string_lossy()
+ .to_string()],
+ env: vec![("DATABASE_URL".into(), settings.database_url)],
51
})
52
}
53
0 commit comments