BlazeLang for Visual Studio Code
Professional editing support for BlazeLang (.blz) source files. This extension is self-contained: it does not install BlazeLang or ship a compiler/interpreter.
Features
- Complete BlazeLang 2.2 support: language registration, file icon, comments, folding, matching brackets, auto-closing pairs, indentation, and region folding.
- TextMate and semantic syntax highlighting for BlazeLang 2.2: declarations,
Class inheritance with extends, Define custom attributes (@logged), Meta lifecycle hooks, bind reactive state, built-ins, and operators.
- Rich IntelliSense autocomplete for all 16 standard modules:
Math, Random, System, Time, IO, File, JSON, HTTP, HttpServer, Process, Regex, Tensor, Crypto, CLI, LocalStorage, Convert.
- Object method completion & hover for Arrays, Strings, Enums, and custom Attributes.
- Interactive Parameter Signature Help when opening parentheses or typing commas for built-in functions and standard library module methods.
- Fast editor-side diagnostics, hover documentation, document/workspace symbols, definitions, references, rename, formatting, and quick fixes.
- Rich snippets for control flow, functions, classes with inheritance, custom attributes, Meta routines, HTTP servers, and Tensors.
- Commands: Run Current File, Run File with Arguments, Run Project, Stop, Format Document, Restart Language Server, New BlazeLang File, and Show Version.
Setup
- Install this extension from a
.vsix package or the Marketplace.
- Open a folder containing
.blz files. BlazeLang activates automatically.
- If
blz is not on PATH, set blazelang.cliPath (or blazelang.interpreterPath) to the full path of blz.exe.
Run the current editor with BlazeLang: Run Current File or click the ▶ button in the editor title bar. The command issued is blz run <file>.
The formatter uses four spaces by default; set blazelang.format.indentSize to change it. Editor diagnostics are intentionally lightweight and incremental, so they remain responsive in large workspaces. The BlazeLang runtime remains the authority for execution-time diagnostics.
Language compatibility
This extension follows the current BlazeLang 2.2 runtime: blocks use braces, statements do not use semicolons, Function, Meta, Class, and Constructor are supported, Class SubClass extends BaseClass supports single inheritance, Define @attribute creates custom attribute handlers, and bind creates reactive variables with .value, .previous, .history, .changes. Both // and /* ... */ comments are supported.
Press F5 in VS Code to launch an Extension Development Host.
License
MIT. See LICENSE.
| |