Skip to content

Commit 3e4432b

Browse files
rprtr258gopherbot
authored andcommitted
extension/src/goTest: do not open Debug Console when debug.internalConsoleOptions is neverOpen
Reference: microsoft/vscode#11372 (not vscode's bug, but of extension) Change-Id: I5f5ff6c22d6017c27601987b517aed664b9481b0 GitHub-Last-Rev: e8df273 GitHub-Pull-Request: #3601 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/627675 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> kokoro-CI: kokoro <[email protected]> Reviewed-by: Hongxiang Jiang <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> Auto-Submit: Hyang-Ah Hana Kim <[email protected]>
1 parent b770fb8 commit 3e4432b

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)