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

align "configure task" with vs code #5776

Closed
wants to merge 3 commits into from

Conversation

elaihau
Copy link
Contributor

@elaihau elaihau commented Jul 23, 2019

align "task quick open" in Theia with vs code

Signed-off-by: Liang Huang liang.huang@ericsson.com

align "configure task" in Theia with vs code

  • in the current Theia, when users configure a detected task, the entire task config is written into tasks.json, which introduces redundancy. With this change, only properties that define the detected task, plus problemMatcher, are written into tasks.json. (fixed users shouldn't have the flexibility of customizing all properties of a detected task #5679)

  • TaskConfigurations.taskCustomizations is a flat array, and the user can only customize one type of detected task in one way. With this change Theia supports having different ways of task customization in different root folders.

Signed-off-by: Liang Huang liang.huang@ericsson.com

edit the right task.json when clicking "configure task" in multi-root workspace

Signed-off-by: Liang Huang liang.huang@ericsson.com

Liang Huang added 3 commits July 20, 2019 16:43
… workspace

- fixed #4919

Signed-off-by: Liang Huang <liang.huang@ericsson.com>
- in the current Theia, when users configure a detected task, the entire
task config is written into tasks.json, which introduces redundancy.
With this change, only properties that define the detected task, plus `problemMatcher`, are
written into tasks.json. (fixed #5679)
- `TaskConfigurations.taskCustomizations` is a flat array, and the user can only customize one type of detected task in one way.
With this change Theia supports having different ways of task customization in different root folders.

Signed-off-by: Liang Huang <liang.huang@ericsson.com>
- The detected tasks, once customized, should be displayed as configured tasks in the quick open. (fixed #5747)
- The same task shouldn’t have more than one customization. Otherwise it would cause ambiguities and duplication in tasks.json (fixed #5719)

Signed-off-by: Liang Huang <liang.huang@ericsson.com>
@elaihau
Copy link
Contributor Author

elaihau commented Jul 23, 2019

Configure tasks in different root folders of a multi root workspace:

Peek 2019-07-23 00-47

Once a detected task is configured, it is displayed as a configured task:

Peek 2019-07-23 00-48

The configured detected task cannot be configured for more than once:

Peek 2019-07-23 00-50

Lastly, as the GIFs shown above, with this change, "configure task" does not write the entire task object into the tasks.json. It only writes the properties that are used to defined the task, and problemMatcher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant