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:

  1. Register a callback using vscode.tasks.onDidEndTaskProcess
  2. Execute a process (/bin/false) that returns a non zero code using vscode.tasks.executeTask API
  3. Check event.exitCode passed 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

Most upvoted comments

We could also use null to indicate that the process actually didn’t provide an exit code.