Description
Consider the following steps that a new user might take to get started with Zig:
- Open VS Code.
- Open a new, empty folder as a workspace (optional).
- Install the Zig VS Code extension.
At this point, the user might expect some guidance, perhaps a welcome message with next steps, a confirmation that Zig has been installed, or a suggestion to run zig init
. However, what actually happens is... nothing.
A potential solution is to use VS Code's Walkthroughs feature. This could provide a structured introduction, guiding users through some setup steps to help them get starting with learning Zig. Here is an example of what could be included:
- create a new Zig project with
zig init
- enable ZLS (optional)
- compile and run the project (should integrate with build system VS Code debugging API in the future)
- run tests (should integrate with build system and VS Code testing API in the future future)
- checkout https://ziglang.org/learn/ and https://github.com/ziglang/zig/wiki/Community
For inspiration, the vscode-python extension and VS Code itself offer well-designed walkthroughs that could serve as a useful reference.
As an alternative solution, It might just be enough to display a message with a button that will create a new Zig project with zig init
.