Add support for TaskGroup.id and isDefault. #56
Add support for TaskGroup.id and isDefault. #56tsmaeder wants to merge 2 commits intoeclipsesource:masterfrom
Conversation
|
Thank you for the changes! Looks good to me. Just one minor nitpick/question: Why do we have two terms for the same field ( |
I'm glad you asked ;-) Because tasks are a mess: their typing is a mix of the schema of the tasks.json file, our internal structures and what the VS Code API wants. So task kind and task id are NOT really the same thing: they might be the id of a TaskGroup object from the VSCode API or they might be a string that is written in a tasks.json (where only "build" and "test" are allowed, by the way). Calling it |
| }; | ||
| } | ||
|
|
||
| export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean' |
There was a problem hiding this comment.
| export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean' | |
| export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean'; |
Seems like the linter requires a semicolon here.
sgraband
left a comment
There was a problem hiding this comment.
Thanks for the clarification. The linter and the tests are complaining, though. Could you check that?
|
The tests complain that that "Values have same structure but are not reference-equal". I suspect it's because the TaskGroup constants use the unwrapped |
sgraband
left a comment
There was a problem hiding this comment.
Great thank you! Using the es5-wrapped constructor should not be an issue. LGTM 👍
Adds support for id and isDefault and includes a small drive-by fix in the Task implementation where the taskRunOptions object was not properly initialized. Contributed on behalf of ST Microelectronics Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
8e685f8 to
2ccacfe
Compare
Co-authored-by: Olaf Lessenich <olessenich@eclipsesource.com>
Co-authored-by: Olaf Lessenich <olessenich@eclipsesource.com>
What it does
Adds support for id and isDefault and includes a small drive-by fix in the Task implementation where the taskRunOptions object was not properly initialized.
Fixes eclipse-theia#11519
Contributed on behalf of ST Microelectronics
How to test
Review checklist
Reminder for reviewers