Open vince-fugnitto opened 3 years ago
@vince-fugnitto I've spent some time looking into this one. It seems like the main reasons this happens are:
tasks.json
file are actually loaded in the model.tasks.json
editor is open when configuring a second task.When saving the tasks file in between running the configure tasks
command, the intended behaviour emerges.
In vscode changes to the tasks.json
file via the configure tasks
command are always commited. I'd recommend implementing the same behaviour. I'll try finding a solution myself today.
Bug Description:
Given that a user attempts to configure more than two tasks, the last task is always overwritten. This behavior is not what is expected, and does not produce the same results compared to vscode.
Theia (after performing multiple configures):
VS Code (after performing multiple configures):
With the framework, I'm only ever able to get 2 tasks configured, while in vscode I have all of them.
Steps to Reproduce:
In order to reproduce, I created a custom
TaskProvider
extension which contributes multiple tasks:.theia
or.vscode
folder is present in the workspaceconfigure tasks
Additional Information