Skip to content

Commit

Permalink
src/goTest: open debug repl when running debug test
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
suzmue committed Aug 22, 2022
1 parent 073136d commit 4298b52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/goTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ export async function debugTestAtCursor(
};
lastDebugConfig = debugConfig;
lastDebugWorkspaceFolder = workspaceFolder;
vscode.commands.executeCommand('workbench.debug.action.focusRepl');
return await vscode.debug.startDebugging(workspaceFolder, debugConfig);
}

Expand Down

0 comments on commit 4298b52

Please sign in to comment.