We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3369428 commit 56b3783Copy full SHA for 56b3783
src/rescript.rs
@@ -73,11 +73,13 @@ impl zed::Extension for ReScriptExtension {
73
) -> Result<zed::Command> {
74
let server_path = self.server_script_path(server_id)?;
75
76
+ let current_dir = env::current_dir()
77
+ .map_err(|e| format!("failed to get current directory: {e}"))?;
78
+
79
Ok(zed::Command {
80
command: zed::node_binary_path()?,
81
args: vec![
- env::current_dir()
- .unwrap()
82
+ current_dir
83
.join(server_path.as_ref())
84
.to_string_lossy()
85
.to_string(),
0 commit comments