Skip to content

New Code Action: Add missing required blocks #1560

Open
@radeksimko

Description

@radeksimko

Background

We currently report the following configuration as invalid:

check "example" {
  
}

validation-rule-missing-blocks

Users would also benefit from an easier way of addressing that diagnostic.

Proposal

  • Provide code action which generates [snippets for] the minimum required blocks

Implementation Notes

It is not clear whether/how we could leverage snippet markers in the generated code (text edits) or whether this would have to be static text which cannot be tabbed through. Hence the needs-research label.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions