vscode-zig
vscode-zig copied to clipboard
selecting a Zig version should offer to update `.zigversion` or `build.zig.zon`
A user can manually override which Zig version should be used with the "select and install" menu that can be opened through the status bar or with the "Install Zig" command. Unfortunately, the select Zig version is secretly written into the workspace state of the extension which makes it invisible to the user. Instead, the extension should do the following:
- remove the hidden workspace state so that the change is reverted when reopening the editor
- color the context bar item that shows the Zig version in orange (or whatever the Theme uses as the warning color) when the current Zig version does not match the workspace Zig version from
.zigversionorbuild.zig.zon(Related: #245) - Show a message that offers to update the
.zigversionorbuild.zig.zonfile if a different Zig version is selected.
It would also be possible to even add a minimum_zig_version field to build.zig.zon if is not present already.