Extensions
Extensions contribute through a versioned manifest, extension.toml. Format 1 is declarative: it adds data the IDE interprets (themes, language mappings, decoration rules, commands with built-in actions). No extension code runs. Bundled extensions in extensions/ use exactly the same format and validation as user extensions.
Lifecycle
- Discovery: bundled manifests, then
<config>/extensions/*/extension.toml. Extensions are never loaded from the opened folder. - Identity:
publisher.name, lowercase letters, digits and-/_. The first extension with an id wins; duplicates are reported. - Compatibility:
engineis a semver requirement against the host extension API (currently0.1.0), e.g."^0.1". - Enablement: View → Extensions… toggles extensions; the choice is saved in
settings.tomland takes effect immediately. - Contributions are exposed with qualified ids such as
axiom.todo-highlights/insert-todo.
Manifest reference (format 1)
manifest_version = 1 # required, must be 1
id = "example.todo" # required
name = "TODO tools" # required
version = "1.0.0" # required, semver
engine = "^0.1" # required, semver requirement
description = "…" # optional
publisher = "example" # optional
[[contributes.decorations]] # pattern decorations on visible lines
id = "markers"
pattern = "\\b(TODO|FIXME)\\b" # Rust regex syntax: linear time, no backtracking
style = "warning" # info | warning | error | highlight
languages = ["*"] # language ids or "*"
[[contributes.commands]] # appear in the command palette
id = "insert-todo"
title = "Insert TODO Comment"
action = { insert_text = "// TODO: " } # or { set_editor_theme = "light" }
[[contributes.themes]] # editor colours over the built-in light/dark base
id = "paper"
label = "Paper"
kind = "light"
editor = { background = "#fffff8", selection = "#3366ff40" }
syntax = { keyword = "#7a3e9d", comment = "#8a8a8a" }
[[contributes.languages]] # map files to a language, optionally a built-in grammar
id = "mylang"
name = "MyLang"
extensions = ["myl"]
file_names = []
grammar = "javascript" # rust | typescript | tsx | javascript
Unknown fields are rejected, so a manifest written for a future runtime (for example with a main entry point) cannot load with weaker semantics. Limits: 256 KiB per manifest, 64 contributions per kind, 512-byte patterns, patterns may not match empty text. Theme keys are listed in themes and decorations.
Bundled examples
| Extension | Contributes |
|---|---|
axiom.todo-highlights | A decoration for TODO/FIXME/HACK and an "Insert TODO Comment" command. |
axiom.solarized | Solarized light and dark editor themes. |
Code-executing extensions (proposed)
Format 1 cannot run code. The proposed direction (ADR 0005) is out-of-process extensions with a versioned protocol, per-extension permissions, user approval and supervision. A separate process gives fault isolation, not a security sandbox: until OS-level sandboxing exists, code-executing extensions would run with the user's privileges and must be presented that way. Native dynamic libraries loaded into the IDE process are rejected because of ABI instability and the lack of isolation.