Add custom shell/args terminal example

Fixes Microsoft/vscode#10917
This commit is contained in:
Daniel Imms
2016-09-13 21:35:54 -07:00
parent b569310d7d
commit 94cd47f3c1
3 changed files with 10 additions and 2 deletions

View File

@ -49,6 +49,9 @@ export function activate(context: vscode.ExtensionContext) {
terminalStack.push(vscode.window.createTerminal(`Ext Terminal #${terminalStack.length + 1}`));
getLatestTerminal().sendText("echo 'Sent text immediately after creating'");
}));
context.subscriptions.push(vscode.commands.registerCommand('terminalTest.createZshLoginShell', () => {
terminalStack.push((<any>vscode.window).createTerminal(`Ext Terminal #${terminalStack.length + 1}`, '/bin/zsh', ['-l']));
}));
function getLatestTerminal() {
return terminalStack[terminalStack.length - 1];