Skip to content
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 presentation.echo in task config #7503

Merged
merged 1 commit into from
Apr 17, 2020
Merged

Conversation

elaihau
Copy link
Contributor

@elaihau elaihau commented Apr 5, 2020

Signed-off-by: Liang Huang [email protected]

How to test

  1. Start a task whose configuration does not have the presentation or presentation.echo defined. Verify that the executed command should be printed as the first line of the terminal.

  2. add presentation.echo = false to the task config, rerun the task. Verify that the executed command should NOT be printed in the terminal.

  3. Verify the Theia behavior for

  • both shell and process tasks.
  • both configured and detected tasks.

Peek 2020-04-05 17-15

Review checklist

@elaihau elaihau requested a review from paul-marechal April 5, 2020 21:26
@elaihau elaihau added the tasks issues related to the task system label Apr 5, 2020
@elaihau
Copy link
Contributor Author

elaihau commented Apr 5, 2020

I added Paul as the reviewer because this change is heavily dependent on what he contributed recently. Thank you Paul.

@elaihau elaihau force-pushed the Liang/presentationEcho branch from 29dd95a to 2fa3574 Compare April 5, 2020 21:31
@akosyakov akosyakov requested a review from RomanNikitenko April 6, 2020 06:37
Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with echo: true/false and it worked for me!

packages/task/src/browser/task-service.ts Outdated Show resolved Hide resolved
- add the suppport of having `echo` property in the `presentation`
object in the task configuration. When `echo` is false, Theia does not print the executed command in the terminal.

- resolves #5332

Signed-off-by: Liang Huang <[email protected]>
@elaihau elaihau force-pushed the Liang/presentationEcho branch from 2fa3574 to 998386b Compare April 15, 2020 20:45
@elaihau
Copy link
Contributor Author

elaihau commented Apr 16, 2020

can i have the approval from one you, if the change works as expected :) ?
@marechal-p @RomanNikitenko

Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@elaihau
Copy link
Contributor Author

elaihau commented Apr 17, 2020

Thank you Paul !

@elaihau elaihau merged commit ef0eba6 into master Apr 17, 2020
@elaihau elaihau deleted the Liang/presentationEcho branch April 17, 2020 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tasks issues related to the task system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tasks] display message in terminal when executing a task
2 participants