-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.yamlfiles in Helm charts - Detect
.Values.*references in templates, including those used in functions liketoYaml - 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 filesThe 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request