Skip to content

Commit 4298b52

Browse files
committed
src/goTest: open debug repl when running debug test
This change focuses on the debug console when the debug test is run. This does not guarantee that the active debug console is for the debug test session if there are multiple debug sessions running. Fixes #2409 Change-Id: I5ac77ab9a1d5de90bc52c148e751159c3b7a9457 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/424930 TryBot-Result: kokoro <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
1 parent 073136d commit 4298b52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goTest.ts

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export async function debugTestAtCursor(
271271
};
272272
lastDebugConfig = debugConfig;
273273
lastDebugWorkspaceFolder = workspaceFolder;
274+
vscode.commands.executeCommand('workbench.debug.action.focusRepl');
274275
return await vscode.debug.startDebugging(workspaceFolder, debugConfig);
275276
}
276277

0 commit comments

Comments
 (0)