Skip to content

Commit

Permalink
Merge pull request #4 from Niakr1s/zig-path-fix
Browse files Browse the repository at this point in the history
Zig path fix
  • Loading branch information
ianic authored Oct 25, 2023
2 parents 1ef77d5 + 5e07458 commit 6fd6048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "zig-language-extras",
"displayName": "Zig Language Extras",
"description": "Commands for testing and debugging Zig Language files/projects",
"version": "0.6.0",
"version": "0.6.1",
"repository": "https://github.com/ianic/zig-language-extras.git",
"publisher": "ianic",
"extensionDependencies": [
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function runZig(args: string[], cwd: string, successCallback?: () => void) {

// get zig binary from zig extension configuration
const zigConfig = vscode.workspace.getConfiguration('zig');
const zigPath = zigConfig.get<string>("zigPath") || "zig";
const zigPath = zigConfig.get<string>("path") || "zig";

if (args[0] === "test") {
// append additional test arguments if set in configuration
Expand All @@ -221,7 +221,7 @@ function runZig(args: string[], cwd: string, successCallback?: () => void) {
}

// show running command in output (so can be analyzed or copied to terminal)
output.appendLine("Running: zig " + quote(args).join(' '));
output.appendLine(`Running: ${zigPath} ` + quote(args).join(' '));

cp.execFile(zigPath, args, { cwd }, (err, stdout, stderr) => {
if (stderr.trim().length > 0) {
Expand Down

0 comments on commit 6fd6048

Please sign in to comment.