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

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

Closed
CareyJWilliams opened this issue Apr 18, 2024 · 0 comments · Fixed by #210675
Closed

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

CareyJWilliams opened this issue Apr 18, 2024 · 0 comments · Fixed by #210675
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders tasks Task system issues verified Verification succeeded
Milestone

Comments

@CareyJWilliams
Copy link
Contributor

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
@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug tasks Task system issues labels Apr 18, 2024
@meganrogge meganrogge added this to the April 2024 milestone Apr 18, 2024
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Apr 18, 2024
@eleanorjboyd eleanorjboyd added the verified Verification succeeded label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders tasks Task system issues verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants