Skip to content

Commit

Permalink
Make zig.zls.path and zig.path scoped as machine-overridable.
Browse files Browse the repository at this point in the history
This prevents it from being synced between machines by default, which is undesirable for people who switch between e.g. Windows and Linux.

This change aligns with how vscode-clangd handles its `clangd.path` setting, as an example.
  • Loading branch information
alexrp authored Jan 15, 2024
1 parent bcece61 commit bf09c1f
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 @@ -104,6 +104,7 @@
"description": "The path to build.zig. This is only required if zig.buildOptions = build."
},
"zig.path": {
"scope": "machine-overridable",
"type": "string",
"default": null,
"description": "Set a custom path to the Zig binary. Empty string will lookup zig in PATH."
Expand Down Expand Up @@ -179,7 +180,7 @@
"default": true
},
"zig.zls.path": {
"scope": "resource",
"scope": "machine-overridable",
"type": "string",
"description": "Path to `zls` executable. Example: `C:/zls/zig-cache/bin/zls.exe`.",
"format": "path"
Expand Down

0 comments on commit bf09c1f

Please sign in to comment.