vscode: onDidEndTaskProcess's callback is not always fired when a task exits quickly
- VSCode Version: 1.27.2
- OS Version: Ubuntu 16.04
Steps to Reproduce:
- Register a callback using
vscode.tasks.onDidEndTaskProcess - Execute a process (/bin/false) that returns a non zero code using
vscode.tasks.executeTaskAPI - Check
event.exitCodepassed to the callback (should be non zero)
Does this issue occur when all extensions are disabled?: Yes
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (22 by maintainers)
Commits related to this issue
- Ensure that terminal process ready is always fired And that tasks wait for terminal process ready before checking to see if task process ended to fire Related #58828 — committed to microsoft/vscode by alexr00 6 years ago
- Ensure that terminal process ready is always fired (#61299) And that tasks wait for terminal process ready before checking to see if task process ended to fire Related #58828 — committed to microsoft/vscode by alexr00 6 years ago
We could also use
nullto indicate that the process actually didn’t provide an exit code.