Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Hangar Manifest SupportNew to Visual Studio Code? Get it now.
Hangar Manifest Support

Hangar Manifest Support

Hangar-ai

|
1 install
| (0) | Free
YAML validation and schema support for Hangar manifests
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hangar VS Code Extension

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:

  • build.hangar-ai.dev/v1alpha1 + RootFSBuild -> schemas/v1alpha1/build/build.schema.json
  • build.hangar-ai.dev/v1alpha1 + KernelBuild -> schemas/v1alpha1/build/build.schema.json

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft