-
Notifications
You must be signed in to change notification settings - Fork 36
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
Devfile Commands support #46
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
9 similar comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Signed-off-by: Artem Zatsarynnyi <[email protected]>
Signed-off-by: Artem Zatsarynnyi <[email protected]>
Signed-off-by: Artem Zatsarynnyi <[email protected]>
Signed-off-by: Artem Zatsarynnyi <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
2 similar comments
This comment was marked as outdated.
This comment was marked as outdated.
Pull Request images published ✨ |
Code looks good but I'm not able to test on the dogfooding instance (not related to this PR) |
|
||
command = command + ` --component ${component}`; | ||
const execution = new vscode.ShellExecution(command, { cwd: expandEnvVariables(workdir) }); | ||
const task = new vscode.Task(kind, vscode.TaskScope.Workspace, name, 'eclipse-che.commands', execution); |
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.
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.
Good point.
Actually, it's not a task type, but a task source. I don't know what this string affects except this list. The documentation just says Is presented in the user interface
.
Usually, an extension's publisher and name are used there, exactly how it's defined in the extension's package.json.
I've shortened it to che
. Just pushed. Let's see how it looks and works, once the PR image is ready.
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.
Signed-off-by: Artem Zatsarynnyi <[email protected]>
Is it expected to have an ability to edit I'm asking because I tried to do it and found that it's impossible to execute a configured Screen.Recording.2022-06-02.at.18.23.49.mov |
No. Currently, just running a task detected in the user's Devfile. |
Pull Request images published ✨ |
Thank you @RomanNikitenko for your review and testing. |
Signed-off-by: Artem Zatsarynnyi [email protected]
The PR adds the Che-Commands extension. It detects the Commands defined in a Devfile and represents them as VS Code Tasks. The environment variables substitution is supported for the
exec.workingDir
property.The PR closes eclipse-che/che#21030
How to test
https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/#https://github.com/azatsarynnyy/java-spring-petclinic/tree/devfilev2
task
shortcut and choose ache
task type.prepare-database
command. It's running in themariadb
component. See the output.maven-build
command. It's running in thetools
component. See the output.