From 7f4f1b8bf48afc292ff367aa218567e1bd523340 Mon Sep 17 00:00:00 2001 From: Swathin Sankaran Date: Thu, 1 Jan 2026 23:45:54 +0530 Subject: [PATCH] Prompts to enter name of subtest of Table Driven Tests This change modifies Go to run subtests of table-driven tests. With the fix, a prompt will appear for the user to enter the name of the subtest they wish to run. Fixes golang/vscode-go#3962 --- extension/src/goRunTestCodelens.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/src/goRunTestCodelens.ts b/extension/src/goRunTestCodelens.ts index aa41ebd055..50e02e6acf 100644 --- a/extension/src/goRunTestCodelens.ts +++ b/extension/src/goRunTestCodelens.ts @@ -109,7 +109,7 @@ export class GoRunTestCodeLensProvider extends GoBaseCodeLensProvider { return codelens; } - const simpleRunRegex = /t.Run\("([^"]+)",/; + const simpleRunRegex = /t.Run\(/; for (const f of testFunctions) { const functionName = f.name;