diff --git a/package.json b/package.json index 0931fb3fb9..7c1e96b258 100644 --- a/package.json +++ b/package.json @@ -705,6 +705,11 @@ "type": "boolean", "description": "Use the vscode API to clear the terminal since that's the only reliable way to clear the scrollback buffer. Turn this on if you're use to 'Clear-Host' clearing scroll history as wellclear-terminal-via-lsp." }, + "powershell.integratedConsole.suppressStartupBanner": { + "type": "boolean", + "default": false, + "description": "Do not show the Powershell Integrated Console banner on launch" + }, "powershell.debugging.createTemporaryIntegratedConsole": { "type": "boolean", "default": false, diff --git a/src/session.ts b/src/session.ts index 5a2cd3a6ac..63ca5cd18f 100644 --- a/src/session.ts +++ b/src/session.ts @@ -187,6 +187,10 @@ export class SessionManager implements Middleware { `-BundledModulesPath '${PowerShellProcess.escapeSingleQuotes(this.bundledModulesPath)}' ` + `-EnableConsoleRepl `; + if (this.sessionSettings.integratedConsole.suppressStartupBanner) { + this.editorServicesArgs += "-StartupBanner '' "; + } + if (this.sessionSettings.developer.editorServicesWaitForDebugger) { this.editorServicesArgs += "-WaitForDebugger "; } diff --git a/src/settings.ts b/src/settings.ts index d57a9cedf7..99e73266af 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -101,6 +101,7 @@ export interface IIntegratedConsoleSettings { focusConsoleOnExecute?: boolean; useLegacyReadLine?: boolean; forceClearScrollbackBuffer?: boolean; + suppressStartupBanner?: boolean; } export interface ISideBarSettings {