-
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
User defined Che tasks commands should be exported in a tasks.json file #12712
Comments
@l0rd @slemeur |
Problem is that if user edits the tasks.json, he would share the config through the factory or ws config but won't get the changes done in tasks.json. So what is the benefit ? I can see 2 options:
edit: what about 'target' container ? would that have its place in tasks.json ? |
@vparfonov yes that makes sense thanks @sunix this issue is task n.3 of epic #12709 and syncro is part of task n.5 |
As it was suggested within this issue I added ability to configure Task from UI:
'Configure Tasks' menu displays only detected tasks. So, Che Commands from WS config are 'detected task' for Theia API and are displayed as items of 'Configure Tasks' and 'Run Task' menus. Task configuration is copied to tasks.json and available for editing by clicking on appropriate item. After that che command is displayed as 'configured' in 'Run Task' menu and has high priority at running. At the same time task configuration from WS config is still available from 'Configure Tasks' menu. I would like to discuss question - do we need to copy all Che Commands from WS config to tasks.json file without user interaction? |
I vision is no reason copy all commands during start WS. |
@RomanNikitenko : Can you attach a recording? |
@RomanNikitenko : I feel it quite confusing. I don't think a user will understand where the tasks are coming from. From the video few feedbacks, as a user:
I think we should have a way to display all the tasks and commands. What about a dedicated view where we aggregate all of them? Similar to how preferences are handled? |
@slemeur thank you for your feedback!
OK, I see, but this is default behavior for VS Code https://code.visualstudio.com/docs/editor/tasks
User has ability to configure all the tasks - 'Run Task' menu displays both: configured and detected tasks. 'Configure Tasks' menu displays only detected tasks(configured tasks are already placed in the tasks.json file and available for editing).
From other side you have ability to run any task and only overridden tasks are displayed in the tasks.json file. Do we really need to display all detected tasks in tasks.json file? So, I guess we can not change default behavior of Theia and need some custom view for our goals. |
I suggest to discuss that tomorrow in Cherkasy during our meeting about Che commands. We will then report the outcome of the discussion here. |
I think we should not compare to VSCode behaviour because it is another use case: these tasks are coming by default with plugins as I understood. We should see che commands as
But definitely not default commands you can customize. |
@RomanNikitenko i tried to run a che task i have modified (configured ...), but changes are not applied ... is it expected ? |
@sunix We have regression after merge eclipse-theia/theia#4847 |
@RomanNikitenko + @vparfonov : Where are you tracking the bug and getting the fix? This is quite critical |
Description
Currently, when a user defines a command (in a
devfile
or from the Che dashboard), he won't be able to view/edit it from thetasks.json
whereTheia
custom tasks should be defined.The text was updated successfully, but these errors were encountered: