Skip to content

Commit f2c925d

Browse files
authored
Add configuration to enable/disable banner (#2398)
1 parent 17add9d commit f2c925d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,11 @@
705705
"type": "boolean",
706706
"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."
707707
},
708+
"powershell.integratedConsole.suppressStartupBanner": {
709+
"type": "boolean",
710+
"default": false,
711+
"description": "Do not show the Powershell Integrated Console banner on launch"
712+
},
708713
"powershell.debugging.createTemporaryIntegratedConsole": {
709714
"type": "boolean",
710715
"default": false,

src/session.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ export class SessionManager implements Middleware {
187187
`-BundledModulesPath '${PowerShellProcess.escapeSingleQuotes(this.bundledModulesPath)}' ` +
188188
`-EnableConsoleRepl `;
189189

190+
if (this.sessionSettings.integratedConsole.suppressStartupBanner) {
191+
this.editorServicesArgs += "-StartupBanner '' ";
192+
}
193+
190194
if (this.sessionSettings.developer.editorServicesWaitForDebugger) {
191195
this.editorServicesArgs += "-WaitForDebugger ";
192196
}

src/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export interface IIntegratedConsoleSettings {
101101
focusConsoleOnExecute?: boolean;
102102
useLegacyReadLine?: boolean;
103103
forceClearScrollbackBuffer?: boolean;
104+
suppressStartupBanner?: boolean;
104105
}
105106

106107
export interface ISideBarSettings {

0 commit comments

Comments
 (0)