Canon for Visual Studio CodeLanguage support for Canon — a programming language that compiles directly to WebAssembly components. Features
All language features are powered by the compiler's built-in language server
( Getting the
|
| Setting | Description |
|---|---|
canon.serverPath |
Explicit path to the canon binary |
canon.trace.server |
LSP trace level (off / messages / verbose) |
Commands
| Command | Description |
|---|---|
| Canon: Restart Language Server | Restart canon lsp |
| Canon: Download Language Server | Fetch the latest prebuilt binary from GitHub releases |
About Canon
Canon presents a small surface area — no let, no if/else, no comments,
no local variables. Branching is dispatch on a union. Effects are passed as
capabilities. Wherever ordering is discretionary, the compiler enforces
alphabetical order.
Bool = False + True
User = Birthday * Username
main = () -> Unit {
"hello".print()
}
See the language guide for more.