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

save scope as part of the TaskService.lastTask #7553

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

elaihau
Copy link
Contributor

@elaihau elaihau commented Apr 12, 2020

  • This change fixes the bug where the command "Run last task" does not work properly for detected tasks. With the new property "scope" added to the "last run task", ProvidedTaskConfigurations.getTask() is able to find the detected task that was run most recently.

  • fixes tasks: 'run last task' does not work for detected tasks #7398

Signed-off-by: Liang Huang lhuang4@ualberta.ca

How to test

  1. defined a detected task. Mine was in package.json:
"scripts": {
  "list": "sleep 1 && ls"
}
  1. Start the detected task defined in Step 1, wait till it finishes.
  2. Run the task defined in Step 1 by Terminal -> Run Last Task from the top menu bar, and check if it starts the right task.
  3. Make sure Step 1 - 3 works in both single and multi root workspace.

Peek 2020-04-12 11-13

Review checklist

- This change fixes the bug where the command "Run last task" does not work properly for detected tasks. With the new property "scope" added to the "last run task", `ProvidedTaskConfigurations.getTask()` is able to find the detected task that was run most recently.

- fixes #7398

Signed-off-by: Liang Huang <lhuang4@ualberta.ca>
@elaihau elaihau requested a review from vince-fugnitto April 12, 2020 15:20
@vince-fugnitto vince-fugnitto added the tasks issues related to the task system label Apr 13, 2020
Copy link
Member

@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 verified the changes and I am now able to successfully execute 'run last task' for detected tasks 👍

@elaihau
Copy link
Contributor Author

elaihau commented Apr 13, 2020

Thank you for the review @vince-fugnitto !

@elaihau elaihau merged commit e2de211 into master Apr 13, 2020
@elaihau elaihau deleted the Liang/runLastDetectedTask branch April 13, 2020 17:32
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: 'run last task' does not work for detected tasks
2 participants