Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selecting a Zig version should offer to update .zigversion or build.zig.zon #247

Open
Techatrix opened this issue Dec 7, 2024 · 0 comments

Comments

@Techatrix
Copy link
Collaborator

Techatrix commented Dec 7, 2024

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 .zigversion or build.zig.zon (Related: #245)
  • Show a message that offers to update the .zigversion or build.zig.zon file 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant