Skip to content

Bug with grouped tasks(split panels): Always restarting the last task #18

@OrIOg

Description

@OrIOg

I have a 3 grouped tasks, and I'm restarting the Socketio task when I update a specific file.
I'm launching my tasks with my default task Start.

I've found that when I save, whatever the depends order of my task, it will always close the last task (here Watch) then try to start the correct task (here Socketio).

Tasks.json

{
	"version": "2.0.0",
	"tasks": [
		{
			"label": "Start",
			"runOptions": {
				"instanceLimit": 1
			},
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"dependsOn": [
				"Serve",
				"Socketio",
				"Watch",
			],
		},
		{
			"label": "Serve",
			"runOptions": {
				"instanceLimit": 1
			},
			"group": "build",
			"type": "shell",
			"command": "php artisan serve",
			"presentation": {
				"reveal": "always",
				"panel": "dedicated",
				"group": "Dev"
			}
		},
		{
			"label": "Socketio",
			"runOptions": {
				"instanceLimit": 1
			},
			"group": "build",
			"type": "shell",
			"command": "node socket.js",
			"presentation": {
				"reveal": "always",
				"panel": "dedicated",
				"group": "Dev"
			}
		},
		{
			"runOptions": {
				"instanceLimit": 1
			},
			"type": "npm",
			"script": "watch",
			"label": "Watch",
			"detail": "npm run development -- --watch",
			"group": "build",
			"presentation": {
				"reveal": "always",
				"group": "Dev",
				"panel": "dedicated"
			}
		},
	]
}

Settings.json

...

    "triggerTaskOnSave.on": true,
    "triggerTaskOnSave.showStatusBarToggle": true,
    "triggerTaskOnSave.restart": true,
    "triggerTaskOnSave.tasks": {
        "Socketio" : [
            "socket.js",
        ]
    }

...

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions