Skip to content

YAML schema does not recognize silent attribute for defer blocks #2061

@StoaferP

Description

@StoaferP

Description

I use the Taskfile YAML schema with VS Code and found that it incorrectly reports silent as an invalid parameter for defer items (screenshot below). This is definitely valid behavior that was recently implemented.

Image

Version

3.41.0

Operating system

Ubuntu 22.04.4

Experiments Enabled

No response

Example Taskfile

version: '3'

tasks:
  stoaferp-defer-things:
    cmds:
      - defer: echo "this will always execute"
        silent: true
      - exit 1
      - echo "this will not execute"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: json schemaChanges related to the JSON schema.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions