-
Notifications
You must be signed in to change notification settings - Fork 111
Export configurations of Che tasks to config file #295
Conversation
Hello Roman, could you explain what this is doing? what is the context? what is the benefit for the end user? which flow it would improve? |
updated description for the PR |
thanks |
otherwise, i still don't understand the meaning of |
these are not Che terms, these are VS Code terms |
We don't add prefix each start, we check each start.
Could you clarify what do you mean? thanks in advance! |
@RomanNikitenko Can you list the scenario you tested this capability against? |
@RomanNikitenko , could we
that would cover 95% of the usecase. It would be simpler to implement and simpler to use, simpler to maintain. Ideally, we should be able to be notified each time the devfile is modified but we can't right now. If you could also just not talk about VSCode terms that do not match with a Che context. Does VSCode has remote containers ? does VSCode provides commands/tasks from a devfile ? does VSCode create workspaces on demand ? no ... so you can just copy VSCode in Che context. it doesn't always work. Che is not VSCode, try not just copy VSCode but make a great IDE for our community and our customers. |
I'm really sorry, I can not understand how it's related to my answer above. |
yes sure
|
:) @RomanNikitenko please don't be sorry, i just try to share my point of view. So what does |
The basic difference is:
Do you have any idea how we can simplify an ordinary developer's life? |
0fe8fa0
to
d7f88b6
Compare
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
d7f88b6
to
064b624
Compare
I rebased the PR, please review, the changes are the same as in the PR for 7.0.0 |
private getConfigFileUri(rootDir: string): string { | ||
return resolve(rootDir.toString(), CONFIG_DIR, LAUNCH_CONFIG_FILE); | ||
} | ||
|
||
private saveConfigs(launchConfigFileUri: string, content: string, configurations: theia.DebugConfiguration[]) { |
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.
Add a return type
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.
fixed, thank you!
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
@olexii4 @vitaliy-guliy so I'm merging the PR |
What does this PR do?
The changes the same as in the PR #355
We need to cherry-pick #367 and #373 after merge this PR.
Export configurations of
Che
tasks to config filecommands
section ofdevfile
can contain actions withche
commands, for example:The PR allows to convert them to theia tasks format and copy to config file of current workspace folder. After that they are available for running from UI:
Terminal
=>Run Task
menu or usingMy Workspace
panel. So now we considertasks.json
file as one source where user can find allche
tasks, edit them or add a new task.The current implementation allows to merge existed configurations from config file and configs from devfile. So user can add new configurations to config file or edit existed ones - the changes are stored to config file.
What issues does this PR fix or reference?
The PR to 7.0.0 branch: #355
eclipse-che/che#13392
https://github.com/eclipse/che-theia/issues/248
fixes for
Che
commands the issue: Can not run Configured task eclipse-theia/theia#5064We provided
che
commands as detectedtheia
tasks. The issue was caused by changes in theia project (the description contains reference to the code) and was reproduced at moving a task fromdetected
toconfigured
section. The issue is not relevant as nowche
tasks are citizens oftasks.json
file and available for editing without moving fromdetected
toconfigured
section.fixes for
Che
commands the issue: Recently used tasks section should respect configured tasks eclipse-theia/theia#5067The issue was manifested when user run a task after configuring from
recently
used section. The original configuration was run, not overrided. It’s not relevant anymore -che
tasks have only one source now -tasks.json
file.fixes for
Che
commands the issue: Contributed Task Configuration question eclipse-theia/theia#4928The issue was relevant for
detected
tasks, according to the changes of this PR we considerche
commands as configuredtheia
tasks, so it’s not relevant forche
commands anymore.How to test
Use the component in your devfile
You can use
commands
section above as example to provide some tasks in your config file.Try to run
che
commands usingTerminal
=>Run Task
menu, edit a task configuration intasks.json
file.Note:
My Workspace
panel is not working at the moment: eclipse-che/che#13956Signed-off-by: Roman Nikitenko rnikiten@redhat.com