You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose a terminal API option to pause when the shell is exited #15583
This is a requirement for the tasks framework to be moved to using the integrated terminal. The idea is to allow extensions to optionally specify they don't want the terminal to go away immediately after the shell process is exited but instead wait for input.
This would allow the tasks framework (and other extensions) to run a command that exits the shell immediately afterwards, and then wait for a keystroke or for the terminal to be killed manually, for example:
gulp build
...
...
Press and key to close the terminal...
Dirk Bäumer (@dbaeumer) FYI currently if a waitOnExit shell exits with a non-0 code I print the message that would normally go in the message box inside the terminal:
Johannes Rieken (@jrieken) the hope is still to move tasks to an extension, it's not the priority now though. A lot of the stuff that tasks need would be great for extensions to be able to hook into eventually as well, now we're just not rushed in pushing the APIs out. Some things that I can see us adding soon:
A more focused waitOnExit after we've received more feedback from tasks
Activity
jrieken commentedon Nov 17, 2016
We might have reached a point where it makes sense to talk about a second overload with an options bag. Like
Tyriar commentedon Jan 4, 2017
Upstream issue to implement disableStdin (prereq) xtermjs/xterm.js#452 (PR xtermjs/xterm.js#453)
Tyriar commentedon Jan 9, 2017
Upstream PR is merged in
Uplevel xterm.js
Implement IShellLaunchConfig.waitOnExit
Add createTerminal with options API with new option waitOnExit
Tyriar commentedon Jan 9, 2017
PR that exposes the new
waitOnExitoption to API: #18336Example usage: microsoft/vscode-extension-samples@9b46d6b
Tyriar commentedon Jan 9, 2017
Dirk Bäumer (@dbaeumer) FYI currently if a waitOnExit shell exits with a non-0 code I print the message that would normally go in the message box inside the terminal:
Remove waitOnExit option from Terminal API
Tyriar commentedon Jan 23, 2017
FYI Dirk Bäumer (@dbaeumer) Johannes Rieken (@jrieken) I've pulled the
waitOnExitoption out of the API for now as it might become an enum (see #18661). I've leftTerminalOptionsin as it will come later anyhow.Tyriar commentedon Mar 1, 2017
No longer needed (yet), closing off.
jrieken commentedon Mar 1, 2017
I hope we still have use for
TerminalOptions... We need more options ;-)Tyriar commentedon Mar 1, 2017
Johannes Rieken (@jrieken) the hope is still to move tasks to an extension, it's not the priority now though. A lot of the stuff that tasks need would be great for extensions to be able to hook into eventually as well, now we're just not rushed in pushing the APIs out. Some things that I can see us adding soon:
waitOnExitafter we've received more feedback from tasksAdd createTerminal with options API with new option waitOnExit