-
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
Support commands macro in Theia tasks #8974
Comments
I've created the issue eclipse-theia/theia#1561 in Theia upstream to add support for variable substitution mechanism. |
upd: |
upd:
Before I continue to work on this task I'd like to clarify what the next steps should be since there's no specification for that.
@vparfonov @slemeur do you have some thoughts about it? If you have no objections, I'll prepare a proposal for Task API into Theia upstream. |
sounds good to me |
Excellent analyze @azatsarynnyy ! |
issue status update:
Target - done:
Preview URL - almost done:
In order to close the subtask for preview URL support, I have to implement dynamic registration of variables for Che machine's servers, e.g. ${server.tomcat}. Missing features which depend on machine-exec server functionality:
|
Added the subtask to add support for showing a task's output. |
Thanks for attaching the recording @azatsarynnyy. Quick questions related to the current implementation:
Few feedbacks:
|
@slemeur thanks for your feedbacks.
As I mentioned above, it can improved to make a target optional. In that case user could be asked to choose a machine to execute a command. Am I understand you correctly?
Task Type in Theia Task API allows different extensions to contribute it's own format of a task. I've described the examples of using it here.
At the moment - there's no way to stop a running task until machine-exec server provides killing an exec. About feedbacks: |
I was more thinking about the ability to define more than one target for a particular task.
The task panel is the panel where you are displaying the outputs of the task.
Ok, thanks. Do you feel it is correct? I personaly feel it disturbing in term of UX.
I was more meaning about displaying the preview inside of its own panel in the Theia UI directly - not in a new browser's tab. Just to know if it's doable? |
As I understood "multiple targets" means that a user can define the several targets and he/she should be asked to pick a one later. If it's correct then yes, it can be implemented as further improvements.
I agree with you. Theia's Terminal widget is very simple and having Che's own output widget with additional functionality, which is Che specific, may be better solution.
As for me, I like the approach to use Commands Palette only. And if some command is used very often, a hotkey may be assigned. But I have no idea if it's already supported in Theia.
Yes, it's doable. |
Thanks for your answer @azatsarynnyy ! |
upd: The PR for the Theia Task API has been opened in Theia upstream - eclipse-theia/theia#2086. I continue working on finalizing the Che Theia Task extension. |
There're the received feedbacks which we can consider to do as the follow-up improvements:
|
@vparfonov @slemeur |
Thanks @azatsarynnyy ! |
The text was updated successfully, but these errors were encountered: