Skip to content

Commit a10ee7b

Browse files
actually hide terminal until debug session (#2437)
1 parent 32c9623 commit a10ee7b

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"publisher": "ms-vscode",
77
"description": "(Preview) Develop PowerShell scripts in Visual Studio Code!",
88
"engines": {
9-
"vscode": "^1.34.0"
9+
"vscode": "^1.40.0"
1010
},
1111
"license": "SEE LICENSE IN LICENSE.txt",
1212
"homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md",
@@ -57,7 +57,7 @@
5757
"@types/rewire": "~2.5.28",
5858
"@types/semver": "~6.2.0",
5959
"@types/sinon": "~7.5.1",
60-
"@types/vscode": "1.34.0",
60+
"@types/vscode": "1.40.0",
6161
"mocha": "~5.2.0",
6262
"mocha-junit-reporter": "~1.23.2",
6363
"mocha-multi-reporters": "~1.1.7",

src/process.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,15 @@ export class PowerShellProcess {
108108

109109
// Launch PowerShell in the integrated terminal
110110
this.consoleTerminal =
111-
vscode.window.createTerminal(
112-
this.title,
113-
this.exePath,
114-
powerShellArgs);
111+
vscode.window.createTerminal({
112+
name: this.title,
113+
shellPath: this.exePath,
114+
shellArgs: powerShellArgs,
115+
hideFromUser: !this.sessionSettings.integratedConsole.showOnStartup,
116+
});
115117

116118
if (this.sessionSettings.integratedConsole.showOnStartup) {
119+
// We still need to run this to set the active terminal to the Integrated Console.
117120
this.consoleTerminal.show(true);
118121
}
119122

0 commit comments

Comments
 (0)