Skip to content

Bug: Cross-chart references in "Go To References" - should be scoped per chart #182

@jadefr

Description

@jadefr

Expected Behavior

When using "Go To References" on a parameter in a helm chart's values.yaml, it should only show references within
the same chart directory.

Actual Behavior

When clicking "Go To References" on any parameter in a helm chart, the LSP returns references from other charts in
the workspace as well, creating cross-chart pollution in the results.

Steps to Reproduce

  1. Create multiple helm charts in a workspace
  2. Open any values.yaml file
  3. Right-click on a parameter
  4. Select "Go To References"
  5. Observe that results include references from other charts in the workspace, not just the current chart

Example

In a charts folder containing both nginx and redis charts, when selecting a parameter in charts/redis/values.yaml, it gets references of charts/nginx

Image

Environment

• helm-ls version: 1.5.1
• Editor: VS Code
• OS: Linux (Ubuntu)

Additional Context

Each helm chart should be treated as an isolated scope. References should respect chart boundaries and not leak across different chart directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions