Also support string in shellArgs passed directly to createTerminal

Part of #70716
This commit is contained in:
Daniel Imms
2019-03-26 16:02:08 -07:00
parent a4989579d8
commit f4e870fe86
3 changed files with 5 additions and 4 deletions

View File

@@ -293,7 +293,7 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
this._proxy = mainContext.getProxy(MainContext.MainThreadTerminalService);
}
public createTerminal(name?: string, shellPath?: string, shellArgs?: string[]): vscode.Terminal {
public createTerminal(name?: string, shellPath?: string, shellArgs?: string[] | string): vscode.Terminal {
const terminal = new ExtHostTerminal(this._proxy, name);
terminal.create(shellPath, shellArgs);
this._terminals.push(terminal);