VS Code Extensions
H

Hangar Manifest Support

by Hangar-ai

YAML validation and schema support for Hangar manifests

Downloads

2

Rating

— (0)

Version

0.0.2

Last updated

May 06, 2026

VS Code extension for Hangar YAML manifests.

Current Behavior

The extension integrates with redhat.vscode-yaml and selects schemas by inspecting top-level apiVersion and kind fields in YAML documents.

Schema routing is configured in schemas/manifest.json.

Current mapping:

Limits

  • Schema matching is based on top-level apiVersion and kind only.
  • Multi-document YAML is supported. The extension scans documents separated by ---.
  • A single YAML file may resolve to multiple schemas.
  • Schema association happens at the file level because this is how vscode-yaml works.
  • Because association is file-level, a YAML file that contains multiple different document kinds may receive multiple schemas for the whole file, not one schema per individual document.
  • The current matcher is lightweight and line-based. It expects apiVersion: and kind: to appear as normal top-level scalar fields.

Manual Test

Open examples/build.multi.yaml in an Extension Development Host with redhat.vscode-yaml installed.

What to check:

  • RootFSBuild and KernelBuild both get completion and hover help.
  • Wrong types or unknown fields produce validation errors.
  • Removing spec.source.uri should produce a required-field error.
  • Setting resize.gib: 1.5 should produce a type error because the schema now requires an integer.

Development

  • npm run compile
  • Press F5 in VS Code to launch an Extension Development Host

Related extensions