From edcdc0a856d67d37c02ab74d4c1630f7239749c6 Mon Sep 17 00:00:00 2001 From: Moxley Stratton Date: Sun, 4 Feb 2024 16:19:44 -0800 Subject: [PATCH] Show terminal if not already showing --- src/helpers/term.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/helpers/term.js b/src/helpers/term.js index 06c7982..f1adcdf 100644 --- a/src/helpers/term.js +++ b/src/helpers/term.js @@ -2,7 +2,10 @@ const vscode = require('vscode'); const storage = require('./storage'); function terminal() { - return vscode.window.activeTerminal || vscode.window.createTerminal(); + const term = vscode.window.activeTerminal || vscode.window.createTerminal(); + // preserveFocus=true. Does not change focus to terminal. + term.show(true); + return term; } function run(context, cmd, store = true) {