diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts b/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts index 1ff2c499a06eb..47e799f039b5c 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminal.contribution.ts @@ -61,6 +61,14 @@ configurationRegistry.registerConfiguration({ 'type': 'string', 'default': TERMINAL_DEFAULT_SHELL_WINDOWS }, + 'terminal.integrated.shellArgs.windows': { + 'description': nls.localize('terminal.integrated.shellArgs.windows', "The command line arguments to use when on the Windows terminal."), + 'type': 'array', + 'items': { + 'type': 'string' + }, + 'default': [] + }, 'terminal.integrated.fontFamily': { 'description': nls.localize('terminal.integrated.fontFamily', "Controls the font family of the terminal, this defaults to editor.fontFamily's value."), 'type': 'string' diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminal.ts b/src/vs/workbench/parts/terminal/electron-browser/terminal.ts index 07fc47006860f..56d2683956a4f 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminal.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminal.ts @@ -39,7 +39,8 @@ export interface ITerminalConfiguration { }, shellArgs: { linux: string[], - osx: string[] + osx: string[], + windows: string[] }, cursorBlinking: boolean, fontFamily: string, diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts b/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts index 615de4858ae36..13075b3c197b3 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminalConfigHelper.ts @@ -160,6 +160,7 @@ export class TerminalConfigHelper { }; if (this._platform === Platform.Windows) { shell.executable = config.terminal.integrated.shell.windows; + shell.args = config.terminal.integrated.shellArgs.windows; } else if (this._platform === Platform.Mac) { shell.executable = config.terminal.integrated.shell.osx; shell.args = config.terminal.integrated.shellArgs.osx;