Hello everyone,
I have worked on some new features for the official VS Code Zig Language extension, available as version v0.5.10 (pre-release)
.
The most notable improvement is the extension’s ability to infer the required Zig version from the minimum_zig_version
specified in your project’s build.zig.zon
or the .zigversion
file. It will automatically install both Zig and ZLS. If you switch to a project with a different Zig version, the extension will handle the change seamlessly. Even if you switch to another host machine (e.g., via SSH or WSL), it will reinstall Zig and ZLS as needed.
A new status bar will display which Zig Version is currently in use. You can click it to open the improved “Select and Install” popup, where you can pick the Zig version you need.
For a detailed overview of all the changes, check out the Pull Request.
If you’re interested, I’d greatly appreciate it if you could try the pre-release version to provide some feedback before it gets released to everyone. Thank you in advance!