-
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
align "configure task" and "task quick open" with vs code #5777
Conversation
Configure tasks in different root folders of a multi root workspace: Once a detected task is configured, it is displayed as a configured task: The configured detected task cannot be configured for more than once: Lastly, as the GIFs shown above, with this change, "configure task" does not write the entire task object into the |
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.
Code seems ok with minor comments
Can the 3 commits be squashed into one !
Not tested the runtime exec yet
477f7e8
to
396b329
Compare
Thank you for the review @lmcbout @vince-fugnitto ! |
396b329
to
baab4d6
Compare
@elaihau I don't have any issues codewise :) |
I tested the changes locally using
so, thank you @elaihau for the fix - well done! I would like test the running a configuration from thank you! |
@RomanNikitenko Thank you for testing, really appreciated ! from my understanding in vs code the As per our discussion in #5679 (comment), I should add support to allow users to override all properties such as |
We could install vs code extensions such as |
14b89f3
to
29dbe89
Compare
@RomanNikitenko with the latest change in this patch you would be able to override any properties, except for take {
"type": "npm",
"required": [
"script"
],
"properties": {
"script": {
"type": "string",
"description": "%taskdef.script%"
},
"path": {
"type": "string",
"description": "%taskdef.path%"
}
}
} we know Please see this GIF for example
Please let me know if this supports what you needed. Thank you ! |
29dbe89
to
0fb0b45
Compare
@elaihau |
- edit the right task.json when clicking "configure task" in multi-root workspace (fixed #4919) - 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) - allow users to override any task properties other than `type`, and those that are used to define the in its task definition. - `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. - 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>
0fb0b45
to
2fe7262
Compare
Thank you for the review and testing @RomanNikitenko , really appreciated ! |
edit the right task.json when clicking "configure task" in multi-root
workspace (fixed [tasks] unable to configure tasks when in a multi-root workspace #4919)
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.
allow users to override any task properties other than
type
, and those that are used to define the in its task definition.The detected tasks, once customized, should be displayed as configured tasks in the quick open. (fixed Configuring of a task #5747)
The same task shouldn’t have more than one customization. Otherwise it would cause ambiguities and duplication in tasks.json (fixed "configure task" should not add duplications to task.json #5719)
Signed-off-by: Liang Huang liang.huang@ericsson.com