Skip to content

Customising a project task in a monorepo loses the working directory #3848

@DanTup

Description

@DanTup

Running a task provider task for a single project works fine from the command palette:

  • Open a folder that contains two nested Dart projects
  • Run Task -> dart pub get (project_1)

However if you click the cog icon to customise it, the cwd is not set in the options:

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "dart",
			"command": "dart",
			"args": [
				"pub",
				"get"
			],
			"problemMatcher": [],
			"label": "dart: dart pub get"
		}
	]
}

This means customisations won't run without adding it back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in tasksRelates to VS Code tasks, such as those provided by Task Providersis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions