Skip to content

feat: Quick Fixes for local include input diagnostics #334

Open

Description

@eFAILution

Problem statement

Remote components get Quick Fixes for input problems (replace an unknown input, add a missing required one). local: includes get the same diagnostics but Cmd+. says "No code actions available".

Proposed solution

Offer the same code actions for local: includes that declare spec.inputs: replace an unknown input with a close match, and add missing required inputs.

Example .gitlab-ci.yml usage

include:
  - local: templates/deploy.yml
    inputs:
      environment: staging
      replica: 3   # unknown, should offer `replicas`
# `app_name` is required and missing, should offer to add it

Command/UI impact

No new commands. Quick Fix menu entries on existing diagnostics.

Acceptance criteria

  • Cmd+. on an unknown input of a local include offers replacements.
  • Cmd+. on a local include missing a required input offers to add it.

Priority

Low

Alternatives considered

No response

Target GitLab instance(s)

n/a, local files

Pre-submit checks

  • I searched existing feature requests and did not find a duplicate.
  • I included concrete examples and acceptance criteria.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions