Skip to content

Commit

Permalink
Make zig.path and zig.zls.path default to "" (look up in PATH).
Browse files Browse the repository at this point in the history
* These will be overwritten by the initial setup process anyway.
* This at least ensures that the default value doesn't cause a warning when editing `settings.json`.
* Looking these programs up in `PATH` seems like a sensible default and is consistent with many other extensions.

Closes #157.
  • Loading branch information
alexrp authored and Vexu committed Jan 16, 2024
1 parent c97caeb commit 7c0c64d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"zig.path": {
"scope": "machine-overridable",
"type": "string",
"default": null,
"default": "",
"description": "Set a custom path to the Zig binary. Empty string will lookup zig in PATH."
},
"zig.checkForUpdate": {
Expand Down Expand Up @@ -182,6 +182,7 @@
"zig.zls.path": {
"scope": "machine-overridable",
"type": "string",
"default": "",
"description": "Path to `zls` executable. Example: `C:/zls/zig-cache/bin/zls.exe`.",
"format": "path"
},
Expand Down

0 comments on commit 7c0c64d

Please sign in to comment.