Skip to content

Expose a terminal API option to pause when the shell is exited #15583

@Tyriar

Description

@Tyriar

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...

Proposed API:

export function createTerminal(name?: string, shellPath?: string, shellArgs?: string[], waitOnExit?: boolean): Terminal;

/cc @jrieken @dbaeumer

Metadata

Metadata

Assignees

Labels

apifeature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions