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
Feature Description
Add the ability to highlight unused values in
values.yamlfiles.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:
values.yamlfiles in Helm charts.Values.*references in templates, including those used in functions liketoYamlExample
Given a
values.yaml:The extension would:
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