-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Revert task types updates #9373
Conversation
I think I have a better fix coming. Give me a couple of hours. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the changes and can confirm that they fix the following issues for me:
- Task type is not displayed for detected tasks #9341
- Configuring tasks are broken #9365
- task: unable to run provided tasks #9366
- resolve problemMatchers for tasks executed by vscode.tasks.executeTask api call #9207 (review)
Let's wait for the PR from @tsmaeder.
@@ -1911,18 +1911,21 @@ export class Task { | |||
private updateDefinitionBasedOnExecution(): void { | |||
if (this.taskExecution instanceof ProcessExecution) { | |||
Object.assign(this.taskDefinition, { | |||
type: 'process', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should ever update the type
field: in Eclipse Che, we register a TaskRunner
for the task type 'che'. Once the type
field is overwritten, we can't get it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update has been there for two years before the introduction of customExecution,
I am trying to understand how this has not caused problems for 'che' then ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thomas, I think @alvsan09 is right: I provided these changes 2 years ago, please see
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced by: #9377 |
What it does
Reverts commits affecting the use of task type
The PR #9189 merged 5 commits to support the Tasks customExecution API,
one of the commits ("Fixed task type is modified") impacted how the task type is used in multiple areas of the task
system, impacting the functionality to configure tasks, running tasks, etc.
There are a couple of other commits trying to fix the broken scenarios which cascaded to other problems.
This PR brings back the functionality before the commit mentioned above.
How to test
NOTE: Gradle tasks are not expected to be visible in the task view since that's the scenario which was addressed by the
reverted commit (a proper solution shall be discussed).
Review checklist
Reminder for reviewers