ASON for Visual Studio CodeSyntax highlighting, source-preserving formatting, and live validation for ASON, a typed data format related to JSON. The extension runs as a web extension in desktop VS Code and VS Code for the Web, including vscode.dev and github.dev. It supports documents in remote and virtual workspaces. Rust, a native formatter executable, and network access are not required at runtime. Documents are processed locally; their contents are never sent to a service. Install and UseInstall the packaged VSIX using Extensions: Install from VSIX..., then open a file ending in To use these editor settings, add them to your VS Code settings:
Syntax highlighting follows the active theme. It covers nested comments, typed numbers and hex floats, Unicode identifiers, enumerations, characters, ordinary, raw, and auto-trimmed strings, date-times, and hexadecimal byte data. Highlighting remains available while a string, comment, or container is incomplete, even if the formatter engine fails to load. Formatting and DiagnosticsFormatting uses the Rust
After a short delay, live diagnostics report the first syntax or validation error. Parser error ranges account for Unicode characters, and unexpected EOF points to the end of the document. The shared library does not provide source ranges for some collection-type errors. These appear on the first line as "Document validation" errors rather than being attached to a guessed token. The validator is not schema-aware and does not recover to report multiple errors.
Explicit formatting is not limited by the automatic validation size limit. The worker has a 10-second watchdog for initialization and another for active work. If it gets stuck, the extension terminates it and can create a new worker for the next request. Automatic validation failures and documents skipped for being too large are recorded in the ASON output channel without logging their contents. Syntax highlighting remains available. Build from SourceTo build from source, you need Node.js 24 or later, npm, Rust with the
Clone the
Install the dependencies:
Build and test the project:
Package the extension:
This creates Set Press F5 to launch the "Run ASON Web Extension" configuration. Build the WASM engine once before starting the development host. By default, The manually triggered CI workflow accepts an immutable formatter commit SHA that includes the bridge. It runs on Linux, macOS, and Windows. Until the companion changes are committed and available, build locally using the explicitly supplied formatter checkout. This project does not publish releases or commit changes automatically. Links
LicenseLicensed under MPL-2.0, with additional terms in LICENSE.additional. See LICENSE and CONTRIBUTING for details. The bundled formatter comes from ASON Formatter by Hemashushu; its source and license notices are kept in the companion project. Dependency license notices are listed in THIRD_PARTY_NOTICES.md. |