-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
search detected tasks by scope #6718
Conversation
This one is created as a draft PR, because the solution I proposed here includes a breaking change, and I am not sure if there is a better way to fix the bug. Also, I suspect this change would break CHE badly. Thank you in advance for the feedback ! |
@elaihau |
Thank you Roman, I will do more testing later today and finalize the change. |
f42682d
to
eaeb26a
Compare
This pull request adds the support of detected tasks that have - same label, and - different scopes in a multi-root workspace. This change fixes #6715. Signed-off-by: Liang Huang <[email protected]>
eaeb26a
to
eea3332
Compare
Ready for review. |
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.
Tested on Ubuntu 16.04
Use Electron and Chrome to test
There are breaking changes in code, but with the Theia extensions, it works fine
DON"T know if any side-effect with some VSCode plugins, I don't have any VSCode plugins using any detected TASKS ?
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.
Tested in a multi-root workspace for tsc
tasks: the bug is fixed for me!
che
tasks work well.
@elaihau thank you!
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.
It looks and works fine to me 👍
Thank you for your reviews ! |
This pull request adds the support of detected tasks that have
in a multi-root workspace. This change fixes Theia could possibly start wrong detected task in a multi root workspace #6715.
Signed-off-by: Liang Huang [email protected]
How to test
Prepare a multi root workspace. Make sure two or more root folders contribute detected tasks that have the same name. In the GIF below, both of my root folders (i.e.,
test-dir
andtest-resource_B
havenpm: myWatch
defined in theirpackage.json
files)Run
npm: myWatch
from root foldertest-dir
.Check which
npm: myWatch
was started. In the GIF below, I startednpm: myWatch
intest-dir
, and the task history and populated messages showed that the task was started in the right root folder.Review checklist
Reminder for reviewers