Skip to content

Commit

Permalink
fix installing zig when no project is open
Browse files Browse the repository at this point in the history
This whole execCmd stuff is borrowed from somewhere
else and should probably be removed.

Closes #125
  • Loading branch information
Vexu committed Mar 26, 2024
1 parent 5a806c1 commit e218542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zigUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function execCmd
const cmdArguments = options ? options.cmdArguments : [];

childProcess =
cp.execFile(cmd, cmdArguments, { cwd: detectProjectRoot(fileName || workspace.rootPath + "/fakeFileName"), maxBuffer: 10 * 1024 * 1024 }, handleExit);
cp.execFile(cmd, cmdArguments, { cwd: detectProjectRoot(fileName || ""), maxBuffer: 10 * 1024 * 1024 }, handleExit);


childProcess.stdout.on("data", (data: Buffer) => {
Expand Down

0 comments on commit e218542

Please sign in to comment.