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

Tasks examples update: added new tasks examples in test-resources #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EstFoisy
Copy link
Owner

@EstFoisy EstFoisy commented Nov 4, 2022

What it does

Add more options of tasks examples in test-resources to tests.
Closes eclipse-theia#6348

How to test

  1. Open test-ressources folder as a workspace
  2. Click on terminal, select run Task
  3. Select one of the options available in the drop-down menu.
  4. If a second drop-down menu appearing, select “Continue without scanning the task output” or fill the information requested by the task.
  5. The task will be executed.

Review checklist

Reminder for reviewers

Copy link

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

I would adjust the label for the tasks so they are consistent as well.

{
"label": "Test compile problemMatcher",
"type": "shell",
"command": "tsc ${file}",

Choose a reason for hiding this comment

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

I don't believe this task actually works as intended in the test-resources workspace, there are no typescript files to run tsc on.

Comment on lines 85 to 89
"presentation": {
"reveal": "always",
"panel": "new",
"clear": true
}

Choose a reason for hiding this comment

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

Is there a reason we want to repeat the same presentation options for:

  • test presentation
  • test compound task
  • test input variables

All three of them use:

"presentation": {
  "reveal": "always",
  "panel": "new",
  "clear": true
}

"id": "taskName",
"description": "enter the task name",
"type": "promptString",
"default": "Create a new class"

Choose a reason for hiding this comment

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

Why class here? It can be as simple as Name or Task Name.

Suggested change
"default": "Create a new class"
"default": "Name"

Copy link
Owner Author

Choose a reason for hiding this comment

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

Hi @vince-fugnitto, many thanks for your comments. I have updated my code accordingly.

added new tasks examples in test-resources

Added new tasks examples to include problemMatchers, compound tasks,
presentation options and variables substitution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[tasks] update 'test-resources' task examples to use new task features/support
2 participants