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
In VS Code, I can configure a task of type 'typescript' that is not considered "customizing" a provided task. That task is considered a new task and shows up when running tasks.
Steps to Reproduce:
In a workspace containing Theia source, invoke "Configure Task"
Select the task "tsc: build - tsconfig.json"
Observe: the tasks.json file is opened and the task added to it.
Change the field tsconfig to ${workspaceFolder}/gurkensalat/tsconfig.json
Change the field label to Gurkensalat
Invoke "Run Task"
Observe: "Gurkensalat" does not show up as a task
Note that I can see and run the task in VS Code.
Additional Information
Operating System:
Theia Version:
The text was updated successfully, but these errors were encountered:
After some investigation i found out that the task will no longer show up when running Run Task..., because it is filtered out here.
Basically we try to match a Customized Task to an existing Contributed Task by checking that all of the relevant fields match, e.g. the tsconfig field (Note: The label is not part of this matching). If one of the fields does not match we filter out the task and therefore making it not runnable.
In VSCode this works differently. The task will still show up, even if one of the fields is changed.
This could either be done, by changing the matching to something id-based, or by copying the information of the task, instead of tying to match it to an existing task. However, it needs to be clarified what effect this would have on the task system.
Another thing i noticed is, that potential arguments of Customized Task might not be overriden so that the original task would still be executed, even if some of the fields would have been changed. This can also be seen, by debugging this line.
Also posting this link here to highlight that there seem to be more problems with the task system. So maybe a bigger overhaul would be a good idea.
Bug Description
In VS Code, I can configure a task of type 'typescript' that is not considered "customizing" a provided task. That task is considered a new task and shows up when running tasks.
Steps to Reproduce:
tsconfig
to${workspaceFolder}/gurkensalat/tsconfig.json
label
toGurkensalat
Note that I can see and run the task in VS Code.
Additional Information
The text was updated successfully, but these errors were encountered: