vscode-zig icon indicating copy to clipboard operation
vscode-zig copied to clipboard

Add "run test", "debug test" and support a hotkey for re-running the last test

Open Jarred-Sumner opened this issue 4 years ago • 2 comments

This is a continuation of https://github.com/ziglang/vscode-zig/pull/51

I have been using this locally for months now. Note that the @link mention is outdated, it was removed in a subsequent commit.

This:

  • Adds a "Run test" and a "Debug test" button
  • Adds commands forzig.testArgs, zig.testCmd, zig.beforeDebugCmd

Debugging depends on the VSCode LLDB extension. Note that clicking the re-run arrow button currently does not recompile the test. This is an unfortunate side-effect of the VSCode LLDB integration. But, re-running it with a hotkey does do it

image

Jarred-Sumner avatar Dec 24 '21 01:12 Jarred-Sumner

Hello. Any updates? Would be this merged by any chance?

Oh. I see it uses old VSCode API Codelenses i think. I have implemented it another way with vscode.TestController.

star-tek-mb avatar Nov 11 '22 10:11 star-tek-mb

@Jarred-Sumner I'd been happily using a version of this you built for me but with the merge of the vscode zls/zig extensions things understandably stopped working. Any chance you've got a version of this that you can share? (it made a big deal productively wise!) 😀

scheibo avatar Mar 10 '23 23:03 scheibo