-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for TaskGroup.id and isDefault. #56
base: master
Are you sure you want to change the base?
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 |
@@ -1443,6 +1443,7 @@ export interface CommandProperties { | |||
}; | |||
} | |||
|
|||
export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean' |
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.
export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean' | |
export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean'; |
Seems like the linter requires a semicolon here.
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.
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 |
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.
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 <[email protected]>
Signed-off-by: Thomas Mäder <[email protected]>
8e685f8
to
2ccacfe
Compare
Co-authored-by: Olaf Lessenich <[email protected]>
Co-authored-by: Olaf Lessenich <[email protected]>
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