VS Code extension for ELO JavaScript development with native TypeScript IntelliSense, sol.define() type generation, lint diagnostics, quick fixes, and ELO-focused formatting.
Publisher: synalisDMS
Extension ID: synalisDMS.elo-utils
What You Get
- Native IntelliSense through
.d.ts files and a TypeScript server plugin (no custom completion provider required)
- ELO API types and globals (
ixConnect, log, constants like SordC.mbAll, etc.)
- Automatic
sol.define() scanning and types/sol-classes.d.ts regeneration
- Built-in soft lint diagnostics for ELO/JSDoc patterns
- Embedded single-file ESLint diagnostics (works without workspace ESLint config)
- Quick fixes for JSDoc tags, object parameter docs, and common lint issues
- Prettier-based ELO formatter via default formatter support and command
- JSON clipboard to JSDoc typedef generator
Requirements
- VS Code
^1.109.0
- JavaScript or TypeScript files (
.js, .jsx, .ts, .tsx)
Installation
- Install from VS Code Marketplace (search for
ELO Development Tools).
- Open an ELO JavaScript project (or a single file).
- Wait for startup logs in the
ELO Utils output channel.
Quick Start
- Open any ELO script.
- Type
ixConnect.ix(). or new Sord(). to verify API IntelliSense.
- Add or edit a
sol.define("...") class and save.
- Check generated declarations in
types/sol-classes.d.ts.
Features
1. Native TypeScript IntelliSense
The extension injects declarations through the bundled TypeScript server plugin and works in both inferred projects and normal jsconfig.json / tsconfig.json setups. No manual typeRoots wiring is required.
Example:
const sord = ixConnect.ix().checkoutSord("123", SordC.mbAll, LockC.NO);
sord.getName();
const proc = sol.create("sol.functions.Processor");
proc.process("test");
2. Automatic sol.define() Declaration Generation
The extension scans workspace files and include graphs and keeps types/sol-classes.d.ts up to date.
- Supports singleton and instance classes
- Supports nested namespaces and nested properties
- Uses JSDoc tags for parameter/return typing
- Supports nested object parameter docs (for example
@param {string} options.mode)
3. Include-Scoped IntelliSense
sol.define() IntelliSense always runs in include-graph mode:
- declarations are generated per entry graph in
types/sol-scopes/scope-*.d.ts
- the active graph is mirrored to
types/sol-classes.active.d.ts
- completion filtering only exposes classes from the active include graph
- when parsing fails, the last known good scope stays active
Scope metadata is stored in types/sol-scopes/manifest.json and consumed by the TypeScript plugin.
4. Built-in Soft Linting + Embedded ESLint
Two diagnostic sources run together when linting is enabled:
- ELO soft lint rules for JSDoc and structural conventions
- embedded ESLint-style checks for open JS files without workspace ESLint setup
The built-in rule set includes missing JSDoc tags, missing @param / @returns, nested object-property docs, and function-length warnings.
5. Quick Fixes (Code Actions)
Includes automated fixes such as:
- insert missing JSDoc block/tag
- insert object sub-property docs (
@param {any} obj.foo)
- convert object param docs to typedef scaffold
- add
disable-elo-lint suppression comments
- embedded ESLint-focused fixes (for supported cases)
Formatting uses normal VS Code formatter integration:
- Set ELO Utils as the default formatter for JS/TS files.
- Use standard format-on-save if needed.
- Or run
ELO: Format Document.
The extension no longer exposes separate formatter settings.
7. JSON to JSDoc Typedef
Command reads JSON from clipboard and inserts generated typedef blocks.
Flow:
- Copy JSON (plain JSON or fenced markdown JSON).
- Run
ELO Utils: Paste JSON As JSDoc Typedef.
- Enter a type name.
- Insert at the cursor or replace the selection.
Commands
ELO Utils: Open JavaDoc Documentation (elo-utils.openJavaDoc)
ELO: Format Document (elo-utils.formatDocument)
ELO Utils: Open Generated sol-classes.d.ts (elo-utils.openSolClassesDts)
ELO Utils: Paste JSON As JSDoc Typedef (elo-utils.pasteJsonAsJSDocTypedef)
Configuration
elo-utils.linting.*
elo-utils.linting.enabled (boolean, default: true) — Toggle all lint diagnostics (soft rules + embedded ESLint)
elo-utils.linting.fileIncludeRegex (string, default: "") — Optional regex filter for files to lint. Empty = lint all eligible files
elo-utils.linting.embeddedEslintGlobals (object, default: {}) — Additional globals for embedded ESLint (e.g., {"RF_": "readonly"})
elo-utils.linting.embeddedEslintVarsIgnorePattern (string, default: ^(RF_|_)) — Variable names matching this pattern are ignored by ESLint
elo-utils.linting.embeddedEslintArgsIgnorePattern (string, default: ^(RF_|_)) — Argument names matching this pattern are ignored by ESLint
Note: Soft lint rules use fixed defaults, including an 80-line function threshold and mandatory JSDoc checks. Embedded ESLint runs together with them when elo-utils.linting.enabled is true.
elo-utils.jsdoc.*
elo-utils.jsdoc.defaultTypeName (string, default: TypeName)
elo-utils.jsdoc.includeExamples (boolean, default: true)
elo-utils.jsdoc.replaceSelection (boolean, default: true)
elo-utils.jsdoc.arraySampleSize (number, default: 25)
elo-utils.intellisense.*
elo-utils.intellisense.debugScopeFiltering (boolean, default: false) — Enables tsserver plugin logs for scope-based completion filtering
Include-scoped IntelliSense is always enabled.
Lint Suppression
- Full file opt-out (header area):
/** disable-elo-lint */
- Rule-specific opt-out:
/** disable-elo-lint <rule> */
- Function-scoped suppression is supported for embedded ESLint-style diagnostics.
Supported short aliases include:
max-function-lines
missing-function-jsdoc
sol-class-missing-jsdoc
sol-class-required-tags
sol-method-missing-jsdoc
sol-method-jsdoc-tags
sol-property-jsdoc
Troubleshooting
IntelliSense does not appear
- Open
View -> Output and select ELO Utils.
- Verify startup messages and type file detection logs.
- Ensure document language mode is JavaScript or TypeScript.
- Reload window (
Developer: Reload Window) if needed.
sol.define() types are stale
- Save the changed JS file.
- Ensure the file is visible in the workspace or tab scope.
- Re-open
types/sol-classes.d.ts from the command palette.
Development
Scripts
npm run lint
npm run test
npm run test:simple
npm run gen:eloix
npm run gen:types
Local Extension Run
- Install dependencies:
npm install
- Press
F5 in VS Code to open Extension Development Host.
- Test with JS/TS and
sol.define() files.
License
MIT