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

Fix incomplete data in generated tasks.json #8971

Merged

Conversation

alvsan09
Copy link
Contributor

@alvsan09 alvsan09 commented Jan 19, 2021

What it does

Fixes #8950
Fixes #8980

  • Added missing 'group' property to the TaskDto interface
  • Added group when converting between TaskDto and TaskConfiguration
  • Added group when converting between TaskDto and Task
  • Removes clearing of problem matchers (error) to pass the received ones from a given extension
  • Aligns TaskCustomization.group with task schema (i.e. remove 'none' when 'isDefault').
  • Include provided task 'label' in the generated task.json

How to test

The steps to reproduce the issue are indicated in issues:

the same steps can be used to notice the difference after applying the fix.

The following unit test were updated and pass locally:

  • npx run test @theia/plugin-ext
  • npx run test @theia/task

Review checklist

Reminder for reviewers

Signed-off-by: Alvaro Sanchez-Leon alvaro.sanchez-leon@ericsson.com

@vince-fugnitto vince-fugnitto added bug bugs found in the application plug-in system issues related to the plug-in system tasks issues related to the task system labels Jan 19, 2021
@alvsan09 alvsan09 force-pushed the fixTerminalConfigTasks branch 6 times, most recently from adda4d5 to 084be22 Compare January 21, 2021 17:48
@alvsan09 alvsan09 force-pushed the fixTerminalConfigTasks branch from 084be22 to d32c003 Compare January 26, 2021 20:47
@alvsan09 alvsan09 force-pushed the fixTerminalConfigTasks branch from d32c003 to b2ac4b4 Compare February 1, 2021 21:20
@colin-grant-work colin-grant-work self-requested a review February 2, 2021 15:33
@alvsan09 alvsan09 force-pushed the fixTerminalConfigTasks branch 2 times, most recently from 6e2f6f4 to 0463885 Compare February 2, 2021 21:48
@colin-grant-work
Copy link
Contributor

colin-grant-work commented Feb 3, 2021

I've confirmed the bad behavior described in the bug reports on master and that the current code fixes it. @alvsan09, please squash your commits and rebase on master, and then I'll approve.

@alvsan09 alvsan09 force-pushed the fixTerminalConfigTasks branch from 0463885 to 3f178f6 Compare February 3, 2021 17:29
Copy link
Contributor

@RomanNikitenko RomanNikitenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested typescript tasks according to the Steps to reproduce section of #8950 and #8980

It works well for me, I didn't notice any regression.
thanks!

* Added missing 'group' property to the TaskDto interface
* Added group when converting between TaskDto and TaskConfiguration
* Added group when converting between TaskDto and Task
* Removes clearing of problem matchers (error) to pass the received
ones from a given extension.
* Align TaskCustomization.group with task schema (i.e. remove 'none'
when 'isDefault').
* Include task 'label' in the generated task.json

Issues:
eclipse-theia#8950
eclipse-theia#8980

Signed-off-by: Alvaro Sanchez-Leon <alvaro.sanchez-leon@ericsson.com>
@alvsan09 alvsan09 force-pushed the fixTerminalConfigTasks branch from 3f178f6 to bf3b07b Compare February 3, 2021 19:53
@vince-fugnitto
Copy link
Member

Merging :) Thank you for your contribution @alvsan09 👍

@vince-fugnitto vince-fugnitto merged commit 3e0c9e8 into eclipse-theia:master Feb 4, 2021
@paul-marechal paul-marechal added this to the 1.11.0 milestone Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application plug-in system issues related to the plug-in system tasks issues related to the task system
Projects
None yet
5 participants