Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DanTup opened this issue Mar 1, 2022 · 1 comment
Closed
Labels
in tasks Relates to VS Code tasks, such as those provided by Task Providers is bug
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Mar 1, 2022

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.

@DanTup DanTup added is bug in tasks Relates to VS Code tasks, such as those provided by Task Providers labels Mar 1, 2022
@DanTup DanTup added this to the v3.36.0 milestone Mar 1, 2022
@DanTup
Copy link
Member Author

DanTup commented Mar 1, 2022

This might be a VS Code issue, I've filed microsoft/vscode#144165.

@DanTup DanTup modified the milestones: v3.36.0, v3.38.0 Mar 1, 2022
@DanTup DanTup added blocked on dart / flutter Requires a change in Dart or Flutter to progress and removed blocked on dart / flutter Requires a change in Dart or Flutter to progress labels Mar 1, 2022
@DanTup DanTup modified the milestones: v3.38.0, v3.36.0 Mar 1, 2022
@DanTup DanTup closed this as completed in 17f353c Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in tasks Relates to VS Code tasks, such as those provided by Task Providers is bug
Projects
None yet
Development

No branches or pull requests

1 participant