diff --git a/package-lock.json b/package-lock.json index e2b1678497..e9e85c799e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -140,9 +140,9 @@ "dev": true }, "@types/vscode": { - "version": "1.34.0", - "resolved": "https://botbuilder.myget.org/F/botframework-cli/npm/@types/vscode/-/@types/vscode-1.34.0.tgz", - "integrity": "sha1-Wr3YtUi+CMj+P/98PjstUy4yV0E=", + "version": "1.40.0", + "resolved": "https://botbuilder.myget.org/F/botframework-cli/npm/@types/vscode/-/@types/vscode-1.40.0.tgz", + "integrity": "sha1-R9GenjLaUSyYb1ef5q+8jT5uDFU=", "dev": true }, "acorn": { diff --git a/package.json b/package.json index ad2840184b..6bcbf9b4b3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "publisher": "ms-vscode", "description": "(Preview) Develop PowerShell scripts in Visual Studio Code!", "engines": { - "vscode": "^1.34.0" + "vscode": "^1.40.0" }, "license": "SEE LICENSE IN LICENSE.txt", "homepage": "https://github.com/PowerShell/vscode-powershell/blob/master/README.md", @@ -57,7 +57,7 @@ "@types/rewire": "~2.5.28", "@types/semver": "~6.2.0", "@types/sinon": "~7.5.1", - "@types/vscode": "1.34.0", + "@types/vscode": "1.40.0", "mocha": "~5.2.0", "mocha-junit-reporter": "~1.23.2", "mocha-multi-reporters": "~1.1.7", diff --git a/src/process.ts b/src/process.ts index 3138c6cfdb..0734a571da 100644 --- a/src/process.ts +++ b/src/process.ts @@ -108,12 +108,15 @@ export class PowerShellProcess { // Launch PowerShell in the integrated terminal this.consoleTerminal = - vscode.window.createTerminal( - this.title, - this.exePath, - powerShellArgs); + vscode.window.createTerminal({ + name: this.title, + shellPath: this.exePath, + shellArgs: powerShellArgs, + hideFromUser: !this.sessionSettings.integratedConsole.showOnStartup, + }); if (this.sessionSettings.integratedConsole.showOnStartup) { + // We still need to run this to set the active terminal to the Integrated Console. this.consoleTerminal.show(true); }