Skip to content

Task template write fails on an empty tasks.json file #210674

@CareyJWilliams

Description

@CareyJWilliams

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.88.1 (Latest) + GitHub Codespaces
  • OS Version: All? (Tested on Linux + MacOS)

Steps to Reproduce:

  1. Open a folder or workspace
  2. Open (create if necessary): .vscode/tasks.json
  3. Remove all the content from the above file and save it
  4. Open the command palette
  5. Select 'Tasks: Run Task'
  6. Select '+ Configure a Task'
  7. Select 'Open tasks.json file'
  8. Select any provided task template
  9. Observe notification error: "Unable to write to Folder Settings because no resource is provided."

Expected behaviour:

  • Empty tasks.json is populated with the contents of the selected task template
Screenshot 2024-04-18 at 16 50 01

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsiderstasksTask system issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions