-
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
Che commands should be of type task or launch #12710
Comments
I think the |
I agree @azatsarynnyy. Now I have 2 questions:
|
Hello, maybe instead of restricting we can say that there is a default mapping. Only For devfile
will be mapped to Run / Launch configuration and
to a task ? |
It's a good suggestion to use the If I'm not mistaken, the command's I like the suggestion from @benoitf. |
I think we should allow only a defined set of If the user misspell a goal we should provide a warning. For example it would be an error if we translate The other things that I find confusing is that |
vscode has 'group's for tasks. I do not think this is supported on theia but it should be. groups allows vscode to identify a task as build or test. I think we should consider such a classification for commands on devfile as well. /**
* Defines the group to which this task belongs. Also supports to mark
* a task as the default task in a group.
*/
group?: "build" | "test" | { kind: "build" | "test"; isDefault: boolean }; |
what about the goals |
@l0rd can you provide some examples of how these commands will look like in devfile? |
@gorkem I checked it and the current che-theia supports group. It will improve users' experience by supporting group. @skabashnyuk IMO, it's enough just adding
In this way, I suppose this can be added as the minor upgrade (like v1.1.0 ). |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Description
VS Code (and thus Theia) does a clear distinction between a task (linting, building, packaging, testing or deploying) and a launch configuration (run, debug an application).
Currently all Che commands are translated into Theia tasks. As a consequence the UX is bad for run/debug commands. For example, when a user defines a debug command (in a
devfile
or from the Che dashboard), he won't be able to run it from Theia Debug menu.This issue is about adding an attribute (or a label or an annotation) to the current Che command model (in a workspace config and in a devfile) so that a user will be able to specify if the command should be translated into a task or a launch config.
N.B. This issue is part of epic #12709 and is not about changing the mechanism that translates Che commands into Theia tasks or launch (there is #12711 for that).
The text was updated successfully, but these errors were encountered: