-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Commands/tasks/launch and workspace configuration synchronization #12709
Comments
This is even more complicated when you think about multiple workspace roots, something we will need in the future.
VS Code currently supports adding tasks and launch configuration sections in in the workspace configuration file. However, the UI is not completely up to handling that: for example, when you do a "configure task" the task configuration always ends up in one of the workspace roots. One requirement we're seeing is to run tasks contributed by extensions (Quarkus) to different containers. By default, they should probably run in the container where the extension runs that contributed them, but there are cases where that is the wrong one. There should be "run task in container" and "configure container for task" (which would create a configured task in the devfile). |
It would be ideal if tasks could be defined on a project level and stored in a projects |
@tsmaeder you have good points. I agree that we should avoid synching if possible. One problem we have is that currently the .theia folder doesn't get versioned because it's outside of the project folder (I think that's what @davidwindell is mentioning too). Having a sync mechanism with the devfile (that is versioned) would solve this problem and that's one of the reasons we proposed that. But if |
If we move to a setup where we have on workspace root/project, that will be automatically be the case. However, the tasks in the devfile are still global, not specific to a project. |
We could have some field like |
That's a great idea, would have to think about how a sync would work when a project git pull changes the tasks. |
100% agree with @tsmaeder
|
Conclusion during Che community call discussion:
|
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Unfortunately, we still need to replicate the tasks for now, but this is still kinda bogus |
i think the missing pieces "che-sync" shouldn't be done in a Theia plugin but process independent of the editor. |
fyi: regarding cloning #15973 |
Goal
The goal of this epic is to improve the experience related to configuring tasks, commands and launch configs to keep them in sync with the workspace configuration and all the different menus from the IDE.
As a user, I should be able to configure tasks, commands, launch configs and get them kept in sync so that my experience is consistent between the different IDE actions that are available.
Problems
Today, a workspace and its tasks, commands, launch configs, could be configured from different sources, but editing one or the other doesn't keep everything in sync. There are different sources:
.theia
folder.theia
folderThose are not yet kept synchronized which cause inconsistency. Examples:
Sub-tasks
Che commands should be of type task or launch Che commands should be of type task or launch #12710
Dashboard: While editing a devfile of a workspace, user is constantly interrupted by the auto save] Dashboard: While editing a devfile of a workspace, user is constantly interrupted by the auto save #13982
User defined Che launch commands should be exported in a launch.json file User defined Che launch commands should be exported in a launch.json file #12711
User defined Che tasks commands should be exported in a tasks.json file User defined Che tasks commands should be exported in a tasks.json file #12712
Add a
Configure Task
command in Theia paletteche task: Cannot run a che command after workspace restart for some containers che task: Cannot run a che command after workspace restart for some containers #13993
Implement a
che-sync
Theia plugin that:launch.json
modifications with Che workspace configtasks.json
modifications with Che workspace configdevfile
modifications with Che workspace configImplement a
devfile-sync
Theia plugin that syncDevfile
andlaunch.json
/tasks.json
modificationsWorkspace panel is not getting update with newly added task Workspace panel is not getting update with newly added task #13666
When creating new tasks for a project imported in a che workspaces, folder with tasks definition should be named '.che' When creating new tasks for a project imported in a che workspaces, folder with tasks definition should be named '.che' #13391
Che should auto-detect mvn and npm tasks as VS Code does
Task: Changing a command in the devfile of an existing workspace is not taken in account Task: Changing a command in the devfile of an existing workspace is not taken in account #13994
The text was updated successfully, but these errors were encountered: