Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Task API to listen to task process creation and ending #50577

Closed
2 tasks done
dbaeumer opened this issue May 28, 2018 · 0 comments
Closed
2 tasks done

Test: Task API to listen to task process creation and ending #50577

dbaeumer opened this issue May 28, 2018 · 0 comments

Comments

@dbaeumer
Copy link
Member

dbaeumer commented May 28, 2018

Complexity: 2

Tests: #49806

API has been added to listen to process creation and termination of tasks. See https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L4974

Write a simple extension that listens to process creation. Ensure that the processId of the TaskProcessStartEvent refers to the task process itself and not to any node pty process. Ensure also that the exitCode of TaskProcessEndEvent returns the correct value.

Code sample

    vscode.tasks.onDidStartTaskProcess(event => {
        console.log(`Process started: ${event.processId}`);
    });
    vscode.tasks.onDidEndTaskProcess(event => {
        console.log(`Process ended: ${event.exitCode}`);
    });
@vscodebot vscodebot bot added the tasks Task system issues label May 28, 2018
@dbaeumer dbaeumer added testplan-item and removed tasks Task system issues labels May 28, 2018
@dbaeumer dbaeumer added this to the May 2018 milestone May 28, 2018
@RMacfarlane RMacfarlane assigned mjbvz, isidorn and sandy081 and unassigned dbaeumer and mjbvz May 29, 2018
@sandy081 sandy081 assigned chrmarti and unassigned sandy081 May 29, 2018
@isidorn isidorn removed their assignment May 29, 2018
@chrmarti chrmarti removed their assignment May 29, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants