Skip to content

extHostTasks.ts is using incorrect DTO and TASK in $resolveTask implementation (results in resolved tasks being ignored) #77757

@GabeDeBacker

Description

@GabeDeBacker
  • VSCode Version:
  • OS Version:

Steps to Reproduce:

  1. Write an extension that uses customExecution(s) and provides them during provideTasks. Make one of them a build task and set it as default so it is written to tasks.json.
  2. Modify the task in tasks.json so it no longer matches what the extension will return from provideTasks. This ensures that resolveTask will be called.
  3. Execute "configure default build task" again.

Result:
The extension's resolveTask API is called, but when the extension host attempts to create an ID in addCustomExecution (or addCustomExecution2) it fails because the extHostTask implementation of $resolveTask is not using the resolved DTO or the resolved task when calling these APIs.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtasksTask system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions