Skip to content

Add IntelliSense support for HelmRelease values field#4

Open
yebyen wants to merge 1 commit into
mainfrom
feature/000349-fix-httpsgithubcomweavewo
Open

Add IntelliSense support for HelmRelease values field#4
yebyen wants to merge 1 commit into
mainfrom
feature/000349-fix-httpsgithubcomweavewo

Conversation

@yebyen
Copy link
Copy Markdown
Owner

@yebyen yebyen commented Apr 9, 2026

Summary

This PR adds IntelliSense (auto-completion, hover documentation, and validation) for the values field in Flux HelmRelease resources. When editing HelmRelease YAML files, users now get intelligent suggestions based on the Helm chart's values.schema.json.

Changes

  • Add src/language/ module with HelmRelease detection and parsing
  • Implement schema fetching from HelmRepository sources with caching
  • Register VSCode completion provider for values field auto-completion
  • Register hover provider for property documentation
  • Register diagnostic provider for values validation
  • Add unit tests for HelmRelease detection
  • Update README with feature documentation

How it works

  1. Extension detects HelmRelease resources in YAML files
  2. Parses chart reference (name, version, sourceRef)
  3. Fetches values.schema.json from the Helm chart archive
  4. Provides completions, hover docs, and validation based on schema

Testing

  • Unit tests for HelmRelease detection logic
  • Manual testing with Helm charts that have schemas (e.g., Traefik)
  • Graceful degradation when schema is unavailable

Notes

  • Only HelmRepository sources supported initially (GitRepository/OCI planned for future)
  • Schemas are cached to disk with 24-hour TTL for offline use
  • Charts without values.schema.json silently skip IntelliSense features

Fixes weaveworks#512


🔗 Open in Helix

📋 Spec:

🚀 Built with Helix

- Add src/language/ module with HelmRelease detection and parsing
- Implement schema fetching from HelmRepository sources with caching
- Register VSCode completion provider for values field auto-completion
- Register hover provider for property documentation
- Register diagnostic provider for values validation
- Add unit tests for HelmRelease detection
- Update README with feature documentation

Fixes weaveworks#512

Spec-Ref: helix-specs@7ab71fa:000349_fix-httpsgithubcomweavewo
@mewzherder
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support IntelliSense for HelmRelease values

2 participants