YAML Language Server by Bitno
A lightweight, private and secure YAML language server for VS Code, on Red Hat's yaml-language-server.
Early development: this extension is still being built. Expect missing features, rough edges and breaking changes between versions.
Lightweight, private and secure by design
Built by a developer, for developers. Free to use, with no paid tier.
- Lightweight: it starts only when you open a YAML or Docker Compose file. The language server comes built in, about 1.3 MB, so there's nothing to install and no native binary.
- Private: no telemetry, no account, no cloud. The only network calls: the server downloads SchemaStore's catalog and the JSON schemas it names, for completion and validation of files such as CI pipelines and Compose files, and the schemas a
$schema comment or another extension names. Turn that off with "bitno.yaml.schemas.download": false, and the extension contacts nothing. Kubernetes schemas are never downloaded.
- Secure: it runs nothing it reads, and never writes a file.
Features
- Syntax errors as you type: from the server's parser.
- Format Document: with prettier, and your tab size from VS Code's settings; formatting as you type too.
- Schemas: completion, hover and validation from JSON schemas: SchemaStore's catalog, a
# yaml-language-server: $schema= comment, or the schemas other extensions contribute (yamlValidation).
- Schemas from other extensions: an installed extension can pick a document's schemas, such as Services by Bitno, which gives Kubernetes manifests their cluster's own schemas when it's installed.
- Outline and folding: keys in the outline, breadcrumbs and Go to Symbol, folding, and Expand Selection.
- Anchors and aliases: go from an alias to its anchor, and rename an anchor with its aliases.
- Links and code lenses: follow the links in a document, and see which schema it's validated against.
- Server status beside the language mode: in the
{} of a YAML file, with a spinner while the server starts; it comes into the status bar when the server failed to start, and opens the server's logs when clicked.
Feedback
Found a bug, or missing something? Open an issue. Questions and ideas go to Discussions. Blunt feedback is welcome.
| |