ASUN Support for VS Code
ASUN is designed for structured data that should stay compact, readable, and strongly shaped at the same time. Instead of treating data as loose JSON blobs, ASUN keeps schema and values close together, which makes large config files, fixtures, datasets, and generated data easier to scan and safer to edit. Why ASUNASUN is useful when you want more structure than plain JSON, without giving up readability.
Example:
Compared with repeated object keys in JSON, this format is often shorter and easier to inspect in bulk data. Format AdvantagesASUN has practical serialization advantages because of how the format is designed, not just because of editor tooling.
For array-shaped or repeated structured data, that usually means less text to move, parse, and send to models. Efficiency and PerformanceBased on benchmarks and examples in the ASUN implementations in this repository, the main gains versus JSON are:
The main reason is simple: JSON repeats field names for every row, while ASUN writes the schema once and then only emits values. Concrete example used across the project:
For many structured datasets, that also means noticeably less network bandwidth and lower LLM prompt cost. FeaturesThis extension focuses on daily editing workflows, not just file recognition.
What You Can DoFormat for readabilityTurn dense ASUN into a clean, aligned structure. Before:
After:
Compress for transport or storageConvert formatted content back into a compact single-line representation.
Convert between ASUN and JSONUse ASUN where schema-aware editing is helpful, then export JSON when another system expects it. ASUN:
JSON:
Read tuple data faster with inlay hintsFor tuple-style records, the extension can display field-name hints inline so values are easier to interpret while editing. Source:
Displayed in the editor:
CommandsThe extension adds these commands:
They are available from the Command Palette, and the relevant actions also appear in the editor context menu. ConfigurationAvailable settings:
If the bundled or default server path is not detected automatically, set:
Getting Started
If syntax highlighting works but diagnostics or formatting do not, the ASUN language server is usually missing or not found. In that case, set Build and PackagingMarketplace-facing documentation is intentionally kept separate from build instructions. Repository |
