DeltaScript VS Code Extension

Language support for DeltaScript: syntax highlighting, inline diagnostics (syntax and types), completions, hovers with code previews, go to definition.
Features
- Syntax highlighting (keywords, types, function declarations/calls, member calls,
maybe/true/false, ::Type annotations).
- Language configuration (comments, brackets, auto-closing pairs).
- Inline diagnostics via LSP (syntax and DeltaScript type errors) with red squiggles and Problems entries.
- Includes function return type checking: mismatches at
return sites and missing return when a function declares ::ReturnType.
- Smarter completions:
- Keywords (async/await, control flow, declarations).
- Types (num, str, mbool, obj, arr) and constants (true, false, maybe).
spec.* helpers (log, error, warn, info, debug, success, input).
- In-scope/local identifiers and previously typed words.
- Snippets (function and class).
- Hover:
- Keyword/tooltips for
mut, inmut, func, interface, spec.*.
- Code preview of symbol definitions (functions, classes, interfaces, variables).
- Go to Definition, Document/Workspace Symbols, References, Rename, Signature Help.
Keywords
DeltaScript, deltascript, ds, language support, syntax highlighting, typed superset, custom language, LSP, diagnostics, code frames, interfaces, classes, return types, mbool, maybe, spectral logs, spectrallogs, compile to JavaScript, transpiler, JavaScript superset, ESM
Requirements
- VS Code 1.84+
- Node.js 18+
- The extension starts a bundled LSP server and uses the DeltaScript transpiler for diagnostics. Load order:
extension/server/transpiler.js (bundled copy you can update when building the language)
deltascript/dist/transpiler.js (installed package)
../../dist/transpiler.js (when developing side-by-side)
Usage
- Open a
.ds file.
- You will get colorization, inline errors (syntax + type), completions, hover details with code previews, go-to-definition, and more.
License
MIT
| |