Skip to content

Commit 4e9a89f

Browse files
Don't switch focus to DEBUG CONSOLE if launching in integratedTerminal (#595)
Signed-off-by: Jinbo Wang <[email protected]>
1 parent f807d54 commit 4e9a89f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/configurationProvider.ts

+4
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
153153
const debugSettings: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("java.debug.settings");
154154
config.console = debugSettings.console;
155155
}
156+
// If the console is integratedTerminal, don't auto switch the focus to DEBUG CONSOLE.
157+
if (config.console === "integratedTerminal" && !config.internalConsoleOptions) {
158+
config.internalConsoleOptions = "neverOpen";
159+
}
156160

157161
if (needsBuildWorkspace()) {
158162
try {

0 commit comments

Comments
 (0)