Readonly
executionThe terminal shell execution that has ended.
Readonly
exitThe exit code reported by the shell.
When this is undefined
it can mean several things:
Generally this should not happen. Depending on the use case, it may be best to treat this as a failure.
const execution = shellIntegration.executeCommand({
command: 'echo',
args: ['Hello world']
});
window.onDidEndTerminalShellExecution(event => {
if (event.execution === execution) {
if (event.exitCode === undefined) {
console.log('Command finished but exit code is unknown');
} else if (event.exitCode === 0) {
console.log('Command succeeded');
} else {
console.log('Command failed');
}
}
});
Readonly
shellThe shell integration object.
Readonly
terminalThe terminal that shell integration has been activated in.
An event signalling that an execution has ended in a terminal.
Stubbed