You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Theia could possibly start the wrong task under the conditions described below:
multi-root workspace
detected tasks having the same name are contributed by different root folders
Reproduction Steps
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 and test-resource_B have npm: myWatch defined in their package.json files)
Run npm: myWatch from root folder test-dir.
Check which npm: myWatch was started. In the GIF below, I started npm: myWatch in test-dir, however the task history showed that npm: myWatch in test-resource_B was run.
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 <liang.huang@ericsson.com>
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 <liang.huang@ericsson.com>
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 <liang.huang@ericsson.com>
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 <liang.huang@ericsson.com>
akosyakov
pushed a commit
to akosyakov/theia
that referenced
this issue
Feb 24, 2020
This pull request adds the support of detected tasks that have
- same label, and
- different scopes
in a multi-root workspace. This change fixeseclipse-theia#6715.
Signed-off-by: Liang Huang <liang.huang@ericsson.com>
Description
This bug was found by @RomanNikitenko #6668 (comment)
Theia could possibly start the wrong task under the conditions described below:
Reproduction Steps
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
, however the task history showed thatnpm: myWatch
intest-resource_B
was run.OS and Theia version:
Ubuntu 18.04, Chrome, example browser
Version b87052c
Diagnostics:
We will need to change the
run()
and / orrunTask()
API inTaskService
, to allow searching detected tasks bysource
,scope
, and task name.The text was updated successfully, but these errors were encountered: