no auto download option needed
is there any option to disable auto download zig and zls?
new version of spmeesseman.vscode-taskexplorer will always trigger this plugin to download zig and zls. when download failed, it will download again, much too boring.
but i wil have settings.json in project dir.
{
"zig.zls.zigLibPath": "${env:HOME}/dev/ziglang/zig/lib/",
"zig.path": "${env:HOME}/dev/ziglang/zig/zig",
"zig.zls.path": "${env:HOME}/dev/ziglang/zls"
}
Specifying zig.path should already disable any downloads. Are you sure those are and that there are no other errors? Do the downloads still happen if you disable the other extension and open a Zig file?
currently, not for zig project, it's behavior is very strange.
i use these to manage tasks. either of them will trigger the issue.
- spmeesseman.vscode-taskexplorer
- isopodlabs.taskviewer
steps:
- create python project
uv init demo
- open it with vscode.
For the global zig path setting, these two not working.
"zig.zls.zigLibPath": "",
"zig.zls.path": ""
and for this path "zig.path": "", after saving the global settings.json, 'zig.path' will be removed. i tried many times.
https://github.com/user-attachments/assets/184fb219-f7ae-4256-9265-b352bff9b837
For zig projects, it works fine.
$ tree -la
.
├── build.zig
├── build.zig.zon
├── src
│ ├── main.zig
│ └── root.zig
└── .vscode
├── launch.json
├── settings.json
└── tasks.json
3 directories, 7 files
mmc at manjaro in ~/projects/zig/demo
$ cat .vscode/settings.json
{
"zig.zls.zigLibPath": "${env:HOME}/dev/ziglang/zig/lib/",
"zig.path": "${env:HOME}/dev/ziglang/zig/zig",
"zig.zls.path": "${env:HOME}/dev/ziglang/zls"
}
blank vscode also can reproduce.
- open vscode
- ctrl + shift + p, > run task, Configure a task.
then the dialog will popup
That reproduces. I don't think this is too urgent of an issue though. The extension will only try to install the latest tagged release which doesn't change too often and ZLS can be disabled separately. It also seems like you could workaround this by setting zig.path globally.
when i set in global settings.json
"zig.zls.path": ""
"zig.zls.zigLibPath": "",
// this setting will be auto removed
"zig.path": "",
the zls dialog will always popup
Setting it to an empty string is equivalent to not setting it at all. I meant you should use that path to your home directory. Same for the ZLS path, or alternatively you could set zig.zls.enabled to off.