zig-main-runner READMERun or Debug zig main function in-place. Also, Run or Debug test cases, build the whole workspace. What's New?See the CHANGELOG.
FeaturesThis extension adds few commands for Zig development:
We add some codelens links at the top of function main(), tests, and first line of a zig file, like the following Our inspirations are from go-main-runner, and zig-language-extras. Requirements
Extension SettingsEnable Code LensYou may disable or enable vscode codelens totally. With settings:
Default is true. Enable Code LensYou may enable or disable vscode codelen for test cases. With settings:
Default is false(disabled). Test ArgsYou may add additional test command arguments. With settings
But why? GuideThe launching of main() function will be emitted to a Terminal window (as a vscode Task or a normal terminal session). By default, launching it as a Task allows you reinvoke it easily (by using vscode command
When you're debugging with Zig build.zig, only a main() whom has same name with its directory name can be supported because we have no plan to analysis
Build the WorkspaceThis works by running Test the WorkspaceThis works by running DebuggingWe assume the debugger is in your To avoid unnecessary dependencies, our extension has only one dep to
But, you could manage the debuggers with OS package managers. The default debugger types for each platform are as follows:
Release NotesUsers appreciate release notes as you update your extension. 1.0.1First public release REFsEnjoy! |