This extension adds language support for .vx and .VX files:
- Syntax highlighting
- LSP-powered autocomplete (project symbols + snippets)
- LSP hover, go-to-definition, references, rename, signature help
- Semantic tokens and workspace symbol search
- Quick fixes for common diagnostics (
.jsimport fixup, missing render scaffold, duplicate-name suggestions) - Document symbols (components, params, state,
@fast) - Alias-aware import rename/definition behavior across files
- Server-side structural diagnostics (duplicates, missing render, import resolution)
- On-save/on-open diagnostics via
velox check - Explorer file decoration badge (
VX) on Velox files
Run Locally
- Open
vscode/velox-languagein VS Code. - Press
F5to launch an Extension Development Host. - Open any
.vxfile in the new window. - Run
Velox: Check Current Filefrom the Command Palette to force diagnostics.
LSP Architecture
extension.js: Language client bootstrap + CLI diagnostics integration.lsp/server.js: Language server process implementing symbol intelligence.
Install extension dependencies before running:
cd vscode/velox-language
npm install
npm run bundle
Run LSP quality checks from the repo root:
npm run lsp:smoke
npm run lsp:perf
Package and Install
- Install
vsce:npm i -g @vscode/vsce - From
vscode/velox-language, run:npm run bundle - Package:
vsce package - Install the generated
.vsix:- VS Code Command Palette ->
Extensions: Install from VSIX...
- VS Code Command Palette ->
Settings
velox.cliPath- Optional explicit path to Velox CLI executable.
velox.diagnostics.enabled- Enable/disable diagnostics from
velox check.
- Enable/disable diagnostics from