Skip to content

Commit

Permalink
Replace output with spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyAssassin authored and fuljo committed Nov 12, 2024
1 parent 5454d3c commit d96e875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vscode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Flavor {
cmd.arg("--file-uri").arg(url);
}
}
cmd.output()
cmd.spawn()
.map(|_| ())
.with_context(|| format!("Could not open entry with {}", self.cmd()))
}
Expand All @@ -120,7 +120,7 @@ impl Flavor {
pub fn open_local_path<S: AsRef<OsStr>>(&self, path: S) -> Result<()> {
Command::new(self.cmd())
.arg(path)
.output()
.spawn()
.map(|_| ())
.with_context(|| "Could not execute VSCode")
}
Expand Down

0 comments on commit d96e875

Please sign in to comment.