Skip to content

Feature Request: Highlight unused values in values.yaml files #176

@jadefr

Description

@jadefr

Feature Description

Add the ability to highlight unused values in values.yaml files.

This would help users identify values that are defined but not referenced in any template files. Thus, making it easier to maintain clean and efficient Helm charts.

Implementation Details

The feature would:

  • Scan values.yaml files in Helm charts
  • Detect .Values.* references in templates, including those used in functions like toYaml
  • Highlight unused values with a subtle underline (theme-aware coloring)
  • Show hover messages indicating which values are unused

Example

Given a values.yaml:

replicaCount: 3
image:
  repository: nginx
  tag: latest
  unusedSetting: value  # Not used in any of the template files

The extension would:

  • Highlight image.unusedSetting
  • Show a hover message explaining that the value is unused

Benefits

Helps maintain cleaner Helm charts by identifying unused configurations
Makes review easier by clearly showing what's actually in use

Notes

Already implemented as a standalone VS Code extension at https://github.com/jadefr/helm-highlight-unused-values
Uses VS Code's built-in decoration API for efficient highlighting

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