Skip to content

bug: no input suggestions for the second of two identical component includes #206

Description

@X-Guardian

Bug summary

When a .gitlab-ci.yml includes the same component URL (or the same local: template path) more than once, input-name completions only appear under the first occurrence. Triggering completion in the second include's inputs: block returns nothing.

Steps to reproduce

  1. Open a .gitlab-ci.yml that includes the same component twice (see the snippet below).
  2. Under the second include's inputs:, add a blank line indented to match the input keys.
  3. Trigger completion (it should pop automatically, or press Ctrl+Space).
  4. Observe the completion list.

Expected behavior

The second include offers the same input-name suggestions as the first — the component's inputs, minus any already present under that second include.

Actual behavior

The completion list is empty under the second include. Only the first occurrence offers suggestions.

Component context (if applicable)

No response

Minimal .gitlab-ci.yml snippet

include:
  - component: $CI_SERVER_FQDN/group/project/markdown-lint@markdown-lint-1
    inputs:
      allow_failure: "false"
  - component: $CI_SERVER_FQDN/group/project/markdown-lint@markdown-lint-1
    inputs:
      # trigger completion here — returns nothing on the duplicate

Extension logs

N/A

Affected area

Completion provider

Extension version

0.14.1

VS Code version

1.124.2

Node.js version

22

Operating system

macOS

Pre-submit checks

  • I searched existing issues and did not find a duplicate.
  • I can reproduce this on the latest version from main/beta.
  • I included a minimal YAML snippet and relevant logs.

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions