Skip to content

Commit e8df273

Browse files
committed
[master] fix open terminal on debug test
1 parent a5f8780 commit e8df273

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/src/goTest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ export async function debugTestAtCursor(
301301
};
302302
lastDebugConfig = debugConfig;
303303
lastDebugWorkspaceFolder = workspaceFolder;
304-
vscode.commands.executeCommand('workbench.debug.action.focusRepl');
304+
if (vscode.workspace.getConfiguration().get('debug.internalConsoleOptions') !== 'neverOpen') {
305+
vscode.commands.executeCommand('workbench.debug.action.focusRepl');
306+
}
305307
return await vscode.debug.startDebugging(workspaceFolder, debugConfig);
306308
}
307309

0 commit comments

Comments
 (0)