-
Notifications
You must be signed in to change notification settings - Fork 59
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
Documentation should link to the zlstools docs site if that is the primary docs location? #261
Comments
The extension's README links to the ZLS GitHub page which link to zigtools.org in the Installation section. So it is reachable although not directly. I added a link to https://zigtools.org/zls/install/ in the About section of the ZLS GitHub page. That should help a bit since its visible without scrolling down. Here is what I think we could do:
|
I think the README (which I imagine is the one that shows up on the VSCode extension marketplace?) change would be good. Now it looks more like a placeholder that doesn't invite me to actually read what's written on it. Perhaps make it less about what features this has and more about how to set it up (clearly link to zigtools if that's the best for docs). Of course an alternative would be to make the README include all this but that's probably a bit too much of updating. Quite frankly, having written some VSCode extensions (and certainly used a bunch), it's not always quite clear what's the right place to go read the docs. |
The VSCode settings page could perhaps be a bit more verbose of what is expected of the user to set things up for a successful "Build on Save". The extension settings now has two knobs for "Build on Save". It's not clear what's the difference? I think I set both of these but there was no visible change in VSCode. Not even any kind of a spinner in VSCode indicating that something's being built when I hit ctrl-s. Similarly, the requirements from build.zig on how to setup "zig build check" to work. In an ideal world, this would also be mentioned in the settings since nothing just happens if the build.zig doesn't offer a check target. |
One of the reason why the README is lacking any "How to Setup" instructions is because the extension is intended to work out of the box without additional user input. The extension takes care of installing Zig and ZLS. It is not a strict requirement to look for extra documentation about this extension. Question is how we document additional/optional features like build on save.
I agree, here are some small steps we can take that can improve the situation (in addition to what I mentioned before):
Perhaps it could also make sense to remove the While build on save can undoubtedly be a useful feature to many Zig users. I wouldn't go as far as to have the documentation expect them to enable it as part of their initial setup process. |
I only now found out about the zigtools.org documentation site for ZLS and other Zig tools. This looks good, although it's not immediately clear if this is "first party content" or some other random site.
However, nothing on the VSCode plugin page (screenshot below) links to this docs site:
Assuming zigtools.org is the right place to look for ZLS setup instructions, it'd be really useful to link back to it from the VSCode plugin extension docs.
The text was updated successfully, but these errors were encountered: