Language support for the Posecode (.posecode) kinematic motion DSL:
- Syntax highlighting (TextMate grammar): keywords, kinds, joints, actions, easings, strings, numbers.
- Diagnostics: parse errors and range-of-motion safety clamps as you type (e.g.
knees: flex 200° → clamped to 144°). - Completion (context-aware): kinds after
posecode, joints at line start, actions after<joint>:, easings in astepheader, poses afterpose start =, effectors afterground-lock:. - Hover: the safe ROM range for a joint + action, and short docs for keywords.
The smart features are provided by posecode-lsp, which shares its language logic (posecode-language) with the web playground, so the editor and the playground always agree.
From the repo root:
npm install
npm run build -w posecode-vscode # compiles the client + bundles the LSP to dist/server.cjsThen open this folder in VS Code and press F5 ("Run Extension") to launch an Extension Development Host, and open any .posecode file.
npx @vscode/vsce package # produces posecode-vscode-0.1.0.vsix