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

User/gabrield/extension callback as task #66819

Merged

Conversation

GabeDeBacker
Copy link
Contributor

This PR addresses issue #66818.

Currently tasks can only execute external processes. For certain build environments that are sufficiently complex, launching an external process to perform the build is not sufficient to provide a robust user experience with VSCode.

This change allows an extension to provide a callback function as a task through ITaskProvider::ProvideTasks. When the task is executed, the extension is provided a terminal renderer for which it can provide output and accept input.

All scenarios such as task launch, terminate task, restart task and terminal re-use have been tested.

All unit-tests also pass.

@alexr00 alexr00 added this to the February milestone Jan 21, 2019
@alexr00 alexr00 self-requested a review January 21, 2019 11:34
@Tyriar Tyriar self-requested a review January 22, 2019 16:43
@Tyriar Tyriar self-assigned this Jan 22, 2019
@Tyriar
Copy link
Member

Tyriar commented Jan 22, 2019

@GabeDeBacker I don't have time atm to read through everything, but why are there are so many changes needed for this in the terminal?

@Tyriar Tyriar modified the milestones: February 2019, March 2019 Mar 4, 2019
@Tyriar
Copy link
Member

Tyriar commented Mar 4, 2019

The main piece of feedback is I still think the API should only allow Thenable<number> which would allow us to simplify things and remove a bunch of code, see #66819 (comment)

@Tyriar
Copy link
Member

Tyriar commented Mar 7, 2019

Will merge after CI passes

@Tyriar
Copy link
Member

Tyriar commented Mar 7, 2019

CI failed with unrelated strict null check problems, I'll assume it's all good.

@Tyriar Tyriar merged commit 0d9f226 into microsoft:master Mar 7, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants